Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By gimbal2

Thread: Need help on below JAVA programe.

  1. #1
    harishrao99 is offline Member
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default Need help on below JAVA programe.

    I am beginner to JAVA and I am stuck on below program, please do the needful.

    Need to develop below JAVA program in My Eclipse and the Program is

    “Support computing sales tax in the Cash Register class. The tax rate should be supplied when constructing a Cash Register object. Add record Taxable Purchase and get Total- Tax methods. (Amounts added with record Purchase are not taxable.) The give Change method should correctly reflect the sales tax that is charged on taxable items”

    Only these details given and told to develop program

    Can you help me on this? :)

    Thanks in advance.

  2. #2
    harishrao99 is offline Member
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default Re: Need help on below JAVA programe.

    Any one Please help on this issue.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,083
    Rep Power
    4

    Default Re: Need help on below JAVA programe.

    What issue? I see only one issue: you not doing anything yourself. What have you tried? Where are you stuck? What have you got so far?
    dou2abou likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    harishrao99 is offline Member
    Join Date
    Sep 2013
    Posts
    6
    Rep Power
    0

    Default Re: Need help on below JAVA programe.

    Hi Gimbal2, Thanks for the update. I am even unable to get any idea ... where to start .. and how to prepare program body .. I am just beginner, Please help me in any part ..

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,450
    Rep Power
    18

    Default Re: Need help on below JAVA programe.

    Moving out of a staff only section to New to Java.
    Please do not ask for code as refusal often offends.

  6. #6
    XNOViiCE's Avatar
    XNOViiCE is offline Member
    Join Date
    Sep 2013
    Posts
    24
    Rep Power
    0

    Default Re: Need help on below JAVA programe.

    Well just break it down. "Support computing sales tax in Cash Register class." In Cash Register class have it able to do sales tax math.

    "The tax rate should be given when constructing a Cash Register object." Well, do what it says. When a Cash Register object is being constructed make sure tax rate is given then. I am betting you have learned about constructors if they are making you do this.

    "Add record Taxable Purchase and get Total-Tax methods." So it looks like you need two methods, one called RecordTaxablePurchase and the other one called GetTotalTax.

    Lastly "the give Change method should correctly reflect the sales tax that is charged on taxable items" So it seems you need a GiveChange method that should reflect the sales tax that is charged on taxable items. By reflect I am quite sure they mean when giving change back it should show the item(s) and the tax added together.

    I hope I broke up the description well enough for you to understand everything a little bit more. I will admit it wasn't written in the greatest detail. I also hope I described everything correctly too! D:

Similar Threads

  1. my java programe
    By vibaviattigala in forum New To Java
    Replies: 5
    Last Post: 12-10-2010, 07:35 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
  •