Programming Assignment #2 - CIS12

Your assignment is to read the file shown below which is stored on the Web under the name customer.dat and produce a report according to the following specifications.

Print a page header and column headers. Print a final total line with the number of records processed in each of the 4 classifications.

Print out the following on the detail line:

ACTION TAKEN CHART:

Classification

Customer Special Price Calculation

 

 

 

 

 

01

The customer special price is 10% below the standard price - in other words the customer should pay 90% of the standard price

02

The customer special price is the same as the standard price

04

The customer special price is 10% over the standard price on the file - in other words the customer should pay 110% of the standard price

10

The customer special price is 10% over the standard price on the on the file and in addition there is a $1.00 penalty - in other words the customer should pay 110% of the standard price plus 1.00

CLASSIFICATION NAME CHART:

Classification

Classification Name

 

 

 

 

01

Excellent

 

02

Steady

 

04

Irregular

 

10

Problem

 

The file layout is:

1 - 6

Customer Number

7 - 26

Customer Name

27 - 46

Product

47 - 51

Standard Price

52 - 53

Classification

 

 

Please note: If you have problems downloading the file, please ask me to email it to you. I will also put a copy of the file in K104 and K205 which you can ask the lab assistants for and copy onto your own floppy disk.

The data on the file is:

121212Stephen Daniels     Jean Shorts         0150002
123456Jennifer Ames       Sandals             0299901
144445Susan Richards      Sweater             0499501
145678John Smith          Tank Top            0109904
212121Linda Costa         Socks               0029910
242424Michael Fletcher    Suit                2259501
252728Russell Warren      Coat                1999801
272817Ann Washington      Gown                5000001
300456Dick Southworth     Sweatshirt          0159902
454567Mary Stretton       Bathrobe            0259701