Practice Lab 1 - “Movie” PROJECT                

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

 

Sample Output Report:

(no blank line here! first line is the page header!)

                                                            Page Heading  

                           Production                       Date              ************At the Box Office************

Movie Title          Company             Rating   Released        Week1   Week2  Week3  Week4   Gross Earnings

Data                    data                     PG-13   01/01/2004        03          06         11          12     $000,425,010.00                                             

 

END OF REPORT


Practice Lab 1 - “Skiing” PROJECT               

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

§         Location City, State, Country – 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

 

Sample Output Report:

(no blank line here! first line is the page header!)

                                                            Page Heading  

                                                 **********Location************           Course     Course                       Cost to

Name                  Age   Level    Name                         City, State, etc        Type        Level    Date              Ski

Data                    13      4          Snowtrails                  Mansfield, OH        slalom      2          01/01/2004     $072.50                                                     

 

END OF REPORT