PROGRAMMING ASSIGNMENT #1:
This assignment will involve writing two programs. The first program should create a file. The
second program should read the file that you wrote and prepare a report.
First Program:
Write a program that creates a file. You decide on the layout of the file. It should
have at least 5 fields and at least one of the fields should be numeric and at least one of the
fields should be numeric with decimal places.
When you execute the program, it should create a file with at least 10 records on it. This means
that you should enter data on the screen and write a record at least 10 times.
The first part of this assignment is due in two weeks.
Second Program:
The second program should read the data from the file you created and write a report. On the
report each record will be written as a line. You should set up the line for readability.
The report should include:
- a report header
- column headers
- the information from your file (each record is one line on the report)
- numeric data should be edited on the print line only - you can pick the kind of editing,
but decimal points must show
The second part of the assignment is due two weeks later. However, note that another assignment
will be coming before this one is due, so it is better to get it done as soon as possible!
Extra credit:
For extra credit establish a total line that includes a count of the number of records and the
total of one of your columns of numeric data!
We will be covering totals in class shortly!