Thread: Homework Help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    24

    Homework Help

    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%
    Last edited by xxdustinxx; 11-27-2011 at 02:05 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework Help!!
    By Jdub in forum C Programming
    Replies: 10
    Last Post: 04-24-2010, 02:39 AM
  2. homework
    By misplaced in forum C++ Programming
    Replies: 18
    Last Post: 10-04-2004, 06:56 AM
  3. I want homework!
    By Tynnhammar in forum C++ Programming
    Replies: 9
    Last Post: 09-29-2004, 02:49 PM
  4. ok, yes, I need help with my homework!
    By melee in forum C Programming
    Replies: 5
    Last Post: 09-22-2004, 07:42 AM
  5. Homework help
    By RoD in forum C++ Programming
    Replies: 6
    Last Post: 05-07-2003, 01:53 PM

Tags for this Thread