Wyo C++ Ch. 13 Programming Assignment

Ch13Proj1.cpp

Web pages are written in HTML which consists of tags that are used to tell the browser (such as Netscape) how to display the file. Most but not all Web pages have such a title which is displayed in the browser's title bar. The title is also used as the entry in the browser's list of bookmarks when bookmarked. The HTML tag that surrounds the title of a Web page is <TITLE>Title is placed here</TITLE>. However the letters in the TITLE tag do not have to be all uppercase letters. Write a program that asks the user to enter the filename of a Web page and then displays the title of that Web page. If the page has no title, then display an appropriate message.

You must use apstrings and their member functions efficiently and appropriately in this program, rather than built-in C++ character arrays. Be sure that any HTML files that you wish to use to test this program are placed in the same folder as your source file. You may use NotePad to create Web pages to use to test this program. Actually, you can use the File/Save As menu command in Netscape or IE to save any Web page (such as www.slashdot.org ) to your hard drive for testing purposes. However, due to our school network, you will have to open the file with the correct absolute path (e.g. Z:/C++/Ch 13/webpage.htm ).Your program must follow the Coding Standards.

Preconditions:

You must hand in the following on separate pages stapled in this specified order:

    1. The hardcopy source code for this assignment. Staple multiple pages together, if applicable.
    2. The typed pseudocode that you used to write out your C++ code. Please type this neatly following the specified template.

 

Ch13Proj2.cpp

Write a program that acts as a stock ticker or t.v. weather report "scroller". A message of approximately 20 characters should appear as if it is scrolling across the first line of your DOS window from right to left.

Your program must follow the Coding Standards.

Preconditions:

You must hand in the following on separate pages stapled in this specified order:

    1. The hardcopy source code for this assignment. Staple multiple pages together, if applicable.
    2. The typed pseudocode that you used to write out your C++ code. Please type this neatly following the specified template.