Results 1 to 5 of 5
  1. #1
    megironi is offline Member
    Join Date
    Feb 2009
    Posts
    4
    Rep Power
    0

    Default What should the program look like for this situation

    A catering service has the following schedule of charges for meals that it serves to groups and discounts according to how many were ordered:


    Meal Cost Each Discount If order more than

    Breakfast $5.50 10% 10

    Lunch $9.50 15% 15

    Dinner $16.50 12% 8


    The program should compute, for each category, the cost of the meals received in each category, the discount, and the final cost of the meals. It should then compute the total cost of all meals, add a 10% sates tax and print the total due. Be sure to format the output well and include appropriate comments in your program.



    1. Enter the number of Breakfast ordered: 30



    2. Enter the number of Lunch ordered: 28



    3. Enter the number of Dinner ordered: 25



    My Favorite Catering Service Receipt:



    Meal Quantity Cost Discount Cost After Discount

    Breakfast 30 $165.00 $16.50 $148.50

    Lunch 28 $266.00 $39.90 $226.10

    Dinner 25 $412.50 $49.50 $363.00



    Total: $737.60

    Sales Tax: $73.76

    Total Due: $811.36

  2. #2
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    What should the program look like for this situation
    you tell me, its your design.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    but thanks for posting your homework question. It's an interesting one.

  4. #4
    MK12's Avatar
    MK12 is offline Senior Member
    Join Date
    Jan 2009
    Posts
    185
    Rep Power
    6

    Default

    Why should we do your homework.. how about if I asked you this?
    Thread Topic: "Help Please Urgent!!!!!!"
    " I need someone to make me a very useful application that I can sell for a lot. I have no clue but you're all experts with nothing better to do than waste your time so get going and make it snappy. Email the fully functional code to blah@domain.com. I'm expecting this to be fast."
    Of course it's an exaggeration, but you get the point. We will answer specific problems, but you have to make an effort at least first.
    -MK12
    Tell me if you want a cool Java logo avatar like mine and I'll make you one.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by angryboy View Post
    you tell me, its your design.
    Yep, take a piece of paper and write your logic first. Then try to make a design for that logic, later you can convert it into a Java application.

Similar Threads

  1. Execute A program from a Program!
    By Moncleared in forum Advanced Java
    Replies: 2
    Last Post: 02-22-2009, 04:17 PM
  2. StringBuffer situation
    By orchid in forum New To Java
    Replies: 6
    Last Post: 08-12-2008, 01:39 PM
  3. Executing a program within a program
    By gibsonrocker800 in forum New To Java
    Replies: 5
    Last Post: 05-12-2008, 08:24 AM
  4. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  5. Replies: 0
    Last Post: 10-04-2007, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •