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 8 of 8

Thread: Can some one teach me how to creat this Object Oriented Programming

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Unhappy Can some one teach me how to creat this Object Oriented Programming

    Spinneys Grocery store needs a program that calculates the total amount of the bills for customers.

    You have decided to design a Java project called “Spinneys” that continues accepting amounts for the purchased goods for a certain customer until the user enters zero which denotes the end of the bill.

    The program accumulates these amounts and in the end, it displays the total amount. The management has decided to grant a 2% discount on the total amount if it is greater or equal to AED 1000.

    You need to calculate the gross amount, discount and net amount.

    The management has also decided to give a chance for the customers to play the “Lucky Seven” game by turning a wheel of 10 numbers from 1 to 10. If the wheel stops at number 7, a message will be displayed saying “Congratulations, you are the Lucky Seven Winner!”.


  2. #2
    Junior Member
    Join Date
    Sep 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    i am using NetBeans IDE 7.2

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    Quote Originally Posted by Rashid View Post
    i am using NetBeans IDE 7.2
    It is a popular choice, let me know how it works out for you.

    @post #1 Looks like a fun assignment. Do you have a question about it?

  4. The Following User Says Thank You to jps For This Useful Post:

    Rashid (September 25th, 2012)

  5. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,261
    Thanks
    176
    Thanked 818 Times in 761 Posts
    Blog Entries
    5

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    Please do not post to old threads asking for help, at least one of your posts has been deleted. I recommend reading the forum rules, as well as the following:
    How to Program (stuck on homework? READ THIS BEFORE POSTING)
    How to Help Yourself Get Help
    How To Ask Questions The Smart Way

  6. The Following User Says Thank You to copeg For This Useful Post:

    Rashid (September 25th, 2012)

  7. #5
    Junior Member
    Join Date
    Sep 2012
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    so confused

  8. #6
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    Quote Originally Posted by Rashid View Post
    so confused
    If you have a question, please post it. I see you posted your assignment, what is your question? Please post your code and any error messages with your question.

  9. #7
    Junior Member
    Join Date
    Aug 2012
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    As a very recent newcomer to Java myself your original question came across to me as a good challenge so started writing some code tonight. All I have at this moment is the input of values and
    still need to implement currency the discount and all the totals etc... Hope this is all ok

    //Code removed
    Last edited by jps; September 27th, 2012 at 07:53 AM. Reason: Removed code

  10. #8
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Can some one teach me how to creat this Object Oriented Programming

    @Dreamer999 Please read The problem with spoonfeeding
    We try to provide hints and tips rather than code, I have removed the code in your post.

  11. The Following User Says Thank You to jps For This Useful Post:

    copeg (September 27th, 2012)

Similar Threads

  1. help for Object Oriented Programming RMI
    By clapton in forum Object Oriented Programming
    Replies: 2
    Last Post: March 22nd, 2012, 05:38 AM
  2. Object oriented programming
    By merr78 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 9th, 2012, 12:32 AM
  3. Object oriented programming
    By jonnitwo in forum Object Oriented Programming
    Replies: 8
    Last Post: September 2nd, 2011, 12:18 PM
  4. Object-oriented applet
    By mjpam in forum Object Oriented Programming
    Replies: 26
    Last Post: September 15th, 2010, 06:43 AM
  5. Object Oriented Programming request please helpp...
    By dini-x in forum Object Oriented Programming
    Replies: 3
    Last Post: April 1st, 2010, 12:57 AM