Results 1 to 5 of 5
  1. #1
    icykum is offline Member
    Join Date
    Sep 2012
    Posts
    5
    Rep Power
    0

    Default How do I make classes?

    The compnay sells coffee bags for $5.50 each. When someone makes an order it gets shipped in boxes. Large- Holds 20, $1.80 a box.
    Medium- Holds 10, $1.00
    Small-Holds 5, $0.60

    I understand how to make constants but not the rest I need help.

    Prints like:
    Number of Bags Ordered: 52 - $ 286.00

    Boxes Used:
    2 Large - $3.60
    1 Medium - $1.00
    1 Small - $0.60
    Your total cost is: $291.20

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How do I make classes?

    Quote Originally Posted by icykum View Post
    I need help.
    Let's see what you've done so far. Then ask a specific question about where you are stuck.

    As your post stands, it looks more like "Here's my assignment, someone please do it for me" than "I need help."

    As to the question in the thread title: Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    miche26 is offline Member
    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0

    Default Re: How do I make classes?


  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How do I make classes?

    Looks like it's time to take off my cloak of invisibility ...

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    miche26 is offline Member
    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0

    Default Re: How do I make classes?

    sorry, I read your response after i wrote mines :) sorry again :)

Similar Threads

  1. I need help creating classes to make a program run!!!
    By semi_noob in forum New To Java
    Replies: 2
    Last Post: 04-01-2012, 04:35 AM
  2. Replies: 4
    Last Post: 10-11-2011, 11:48 PM
  3. Replies: 4
    Last Post: 07-23-2011, 08:08 PM
  4. Replies: 23
    Last Post: 04-18-2011, 06:54 PM
  5. how to make to classes in the bank account program
    By buzzing in forum New To Java
    Replies: 3
    Last Post: 11-02-2010, 04:02 AM

Posting Permissions

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