P3: Cable Bill
P3: Cable Bill


Due Date: Monday, Feb. 18, 2002, 23:59:59

The purpose of the second assignment is for students to put everything they have learned so far together and write simple, complete C++ program. The assignment requires students to read in data about a customer's cable service and produce a billing statement for the customer. Use the sample data input/output files below to test your program throughly before submitting it to the Curator.

P3 Cable Bill (PDF format)

Sample sets of I/O files are available for testing:

0 CableData.txt CableBill.txt
1 CableData0.txt CableBill0.txt
2 CableData1.txt CableBill1.txt

Downloading Sample Input/Output Files

To download a file, right-click on the link. Select "Save Target As..." or "Save Link As...", choose a directory to save the file, and save it.

In order for your program to read the input file, you must use the correct name, which will be given in the program specification, and you must save the file in the same directory as your source code (cpp) file. (This will requre renaming the downloaded input files to the required input file name (i.e. "CableData.txt") before executing your program. The produced output file ("CableBill.txt") can then be compared to corresponding output file linked above for testing purposes.

Computer Science 1044, Introduction to Programming in C/C++
D. Barnette