I am lost... I need to create a program that read a file called bagel.seq that contains information about a chain of bagel stores like sales of diffrent types of bagel. Then I have to create a report named bagel. rpt that is suppose to look like a formated table like the one below I just am unsure of how to make the table. and calculate the precentages. If someone could get me started out I would appreciate it, or show me a tutorial to look at. I am behind on my assignments due to the flu and the next assignment is a C++ that has to do with a triangle and a circle and calculations that I have no Idea how to do. So any help would be appreciated Everything is suppose to be more spaced out and formatted and the bagel.seq file contains all the information below I need to read the bagel.seq file into the table and then do the percentage calculations.

Bogus Bagels Sales

Store Bagel Bagel Number Bagel Store

No. Description Price Sold Sales Percentage

----- ------------ ------ ------- ------- ----------

1 Cinnamon $ 1.00 300 $ 300.00

1 Plain $ 1.25 200 $ 250.00

1 Garlic $ 1.20 100 $ 120.00

2 Plain $ 1.10 100 $ 110.00

2 Apple $ 1.30 50 $ 65.00

2 Cheddar $ 1.50 75 $ 112.50

3 Pumpkin $ 1.35 150 $ 202.50

3 Apple $ 0.75 100 $ 75.00

3 Cinnamon $ 1.35 150 $ 202.50

3 Plain $ 1.00 100 $ 100.00

Store 1 Totals $ 670.00 43.58%

Store 2 Totals $ 287.50 18.70%

Store 3 Totals $ 580.00 37.72%