FINAL PROBLEM #5 POPULATION TOTALS

 

Input Record

Population – numeric maximum length 7

City, State – one field with a comma separating the City and State; maximum length 25

 

Output = each state present in the file with their total population

 

Possible options:

Output in State order ascending

Output in Population order descending

Input file is grouped by ST

Input file is not grouped by ST

What state has the largest/smallest population?

 

FINAL PROBLEM #6 KITCHEN PARTY

 

Input Record

Party Planner Name

Party Planner Number

Customer Name

Customer Number

Item description

Item number

Price

Quantity

 

Customers may order multiple items where one record designates one item.  The input file is grouped by party planner number then by customer number.  Totals will be required per customer and per party planner number.

 

Output Report starts out something like the following:

 

Party Planner Number:

Party Planner Name:

 

            Customer Number:

            Customer Name:

 

                        Item Number    Item Description           Price    Quantity           Total   

                        data line for each item purchased

 

            Totals for customer

 

            **** repeat customer info

 

Party Planner totals

 

**** repeat party planner info