Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Exercise

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Exercise

    Instructions:
    Write a Java program that can be used by the University’s student centre for the sale of foodstuffs. Below is the menu: Item Price (K.shs.)
    1. Soda 25
    2. Ndazi 10
    3. Chapati 15
    4. Beef stew 50
    5. Fried cabbage 20
    6. Coffee 25
    A student/user should key in the serial number of the food item(s) he wants to buy. The program should calculate the bill and show the balance (if any) after payment. Example: If the user keys in 5, the program should show a bill of K.Shs. 20 for fried cabbages and allow the customer to key in the amount paid.


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Please Help with the code for this exercise

    What you have done so far?
    Read the forum rules. We don't do assignments for you. If you want someone else to do the coding part, you have freelancing sites.
    Don't waste others time and your as well.

  3. #3
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: Exercise

    Nice assignment, makes me feel hungry! Fried cabbage only 20 Kenyan shillings? I wish I could eat so cheaply. My stomach is rumbling at the thought of beef stew and fried cabbage...

    Good luck with your assignment. If you're struggling with it, post an example of the kind of code that's giving you trouble (in code tags) and maybe someone will be able to give you some advice.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,335
    Thanks
    181
    Thanked 830 Times in 773 Posts
    Blog Entries
    5

    Default Re: Exercise

    Please do not post thing twice to the forums. Your other post has been removed.

Similar Threads

  1. Is this what my exercise want?
    By Arkeshen in forum Java Theory & Questions
    Replies: 3
    Last Post: May 16th, 2011, 04:51 PM
  2. [SOLVED] Exercise for study course help?
    By SweetyStacey in forum Object Oriented Programming
    Replies: 12
    Last Post: April 25th, 2010, 02:01 PM
  3. JAVA exercise
    By gmilan in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 13th, 2010, 01:30 PM
  4. Cash Register Exercise
    By Consus in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 19th, 2010, 10:52 PM
  5. Exercise problems
    By Virgildonatifan in forum Java Theory & Questions
    Replies: 0
    Last Post: February 14th, 2010, 03:12 AM