Project Information
You do not know the number of records in the input file, so you must check for end of file!
INPUT FILE RECORD LAYOUT:
§ Movie title – alphanumeric length 18
§ Production company – alphanumeric length 12
§ Movie Rating – alphanumeric length 5 (G, PG, PG-13, R, NR)
§ Date Released – mmddyyyy format
§ At the Box Office Week 1 rating – integer max length 2
§ At the Box Office Week 2 rating – integer max length 2
§ At the Box Office Week 3 rating – integer max length 2
§ At the Box Office Week 4 rating – integer max length 2
§ Gross Earnings – dollar amount max value less than 1 billion
OUTPUT report should look similar to the following:
Line#1 = page heading, centered;
Line#2 = blank
Line#3 = column headers for each of the input data; each column header underlined individually and spaced neatly
Line#4, etc! = repeat input data under each column header for every record
For date, you must output the data in the following format: mm/dd/yyyy
For the cost, use the following edited picture item: $999,999,999.99 (length 15)
Last line = write “END OF REPORT” with a blank line above it
Project Information
You do not know the number of records in the input file, so you must check for end of file!
INPUT FILE RECORD LAYOUT:
§ Name – alphanumeric max length 15
§ Age – integer max length 3
§ Level (beginner=1, intermediate=2, advanced=3, expert=4) – integer max length 1
§ Location Name – alphanumeric max length 15
§
§ Course Type - pipe, slalom, or downhill
§ Course Level (beginner=1, intermediate=2, advanced=3, expert=4) – integer max length 1
§ Date – mmddyyyy format
§ Cost to ski for the day – dollar amount less than $1,000.00
OUTPUT report should look similar to the following:
Line#1 = page heading, centered;
Line#2 = blank
Line#3 = column headers for each of the input data; each column header underlined individually and spaced neatly
Line#4, etc! = repeat input data under each column header for every record
For date, you must output the data in the following format: mm/dd/yyyy
For the cost, use the following edited picture item: $999.99 (length 7)
Last line = write “END OF REPORT” with a blank line above it