COP 1510 Programming
Concepts I
Assignment 12
Name________________________________________
Section_______________________________________
Date__________________________________________
1. Review Questions 1--17, pp. 986--987
2. Modify the program you wrote for
Assignment 8, part 7 (the compound interest problem) to read values for its
input variables from a file. Use C++
Builder or any other editor to create the data file to test the program. The user of the program should enter the name
of the file interactively. The program
should process multiple sets of data items terminating when end of file is
reached.
3. Write a program to allow the user to
enter data required for the program in part 2 above and create
a file containing this data. You can
test the file by executing the program you wrote for part 2.
4. A data file contains a sequence of
integer numbers representing test scores.
Write a program to process this file and determine the largest and
smallest values and the average of the scores.
Use any editor of your choice to create the test data file.
For
all programming problems, follow the directions for comments and formatting
found on p. 397. Submit a printout of
the program and proof of testing as described in class.
Attach
this cover sheet to your work.