CS1044: Programming with C++

Virginia Tech Computer Science Department
Tom Plunkett
tplunket@csgrad.cs.vt.edu

Homework Assignment #1: Modify an Existing Software Program

Existing Software Program: Formatting Output

Savitch, P.243-245, Display 5.5

Requirements

Due Date: Please email all deliverables to me by 7:00PM, Thursday, June 10th.

Overview: Our users want several enhancements to the existing program.

1) The users want to be able to enter from the keyboard the names of the input file, the output file, and the number of significant digits to format the output file with.

2) The users want the output data file and screen output to begin with a header title, "Processed Numbers" and to have a solid line beneath the title ________________________

3) The users want the output data file to have a solid line after the last processed number _________________ and below that have "average =" calculated average of all of the processed numbers.

4) Deliverables to be submitted include: source code file, testcase files (both input & output), and a ms word file describing details of your modification process.

5) Please insert all appropriate comments into your source code.

6) You should list the following items in your description of the time spent on this project and the class in general:

a) Time spent planning your code change

b) Time spent modifying the code

c)Time spent testing the code

d)Time spent writing up your results

e)Time spent on reading the textbooks

f)Time spent on doing problems in the books and working through examples with a compiler (for the week)

7) Your documentation should list all functions in the program and your justification for modifying them or not modifying them.

8) You should also list other alternative methods to modify the code and why you chose against them.

9) Please also mention any unresolved difficulties you encountered in modifying the software code or reading the textbook. A resolved difficulty is one where you ran into something while working on a task and later found out how it works. An unresolved difficulty is where you ran into a problem and avoided the subject matter to complete the task.

Software Code