Results 1 to 12 of 12
Like Tree3Likes
  • 2 Post By Tolls
  • 1 Post By DarrylBurke

Thread: Kindly Assist Me With A Java Question PLease

  1. #1
    dana_persad is offline Banned
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Default Kindly Assist Me With A Java Question PLease

    A realtor wishes to track her commissions of house sales. The information that she collects is as follows:

    house address a string
    house type a string ( split level, bungalow, etc.)
    sale price a double

    She wishes to calculate the commission for each house as well as find the total commission earned for all houses. Commission is calculated as 7% of the first $100,000 and 3.5% of any amount over $100,000. Create an application that will accept an array of house objects and return the total commission. The application should also be able to calculate the commission earned on each house.

    ***Use the following test data:
    123 Main Street, Split level, 250000.00
    456 Elm Street, Bilevel, 150000.00
    789 Oak Ave, Bungalow, 95000.00

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,732
    Blog Entries
    7
    Rep Power
    21

    Default Re: Kindly Assist Me With A Java Question PLease

    The rules of the game here are: you give it a try first and when you're stuck we'll try to help you out; this place is by no means a homework dump (but I'm sure you knew this already).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    dana_persad is offline Banned
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Default Re: Kindly Assist Me With A Java Question PLease

    Quote Originally Posted by JosAH View Post
    The rules of the game here are: you give it a try first and when you're stuck we'll try to help you out; this place is by no means a homework dump (but I'm sure you knew this already).

    kind regards,

    Jos

    Java Code:
    public class House
    {
       private String houseAddress;
       private String houseType;
       private double sellingPrice;
       House( String address, String type, double price)
       {
          houseAddress = address;
          houseType = type;
          sellingPrice = price;
       }
       public String getHouseAddress()
       {
       }
       public String getHouseType()
       {
        }
       public double getSellingPrice()
       {
       }
    Last edited by JosAH; 11-20-2012 at 09:39 PM. Reason: Added [code] ... [/code] tags

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,732
    Blog Entries
    7
    Rep Power
    21

    Default Re: Kindly Assist Me With A Java Question PLease

    Ok, now what is your question? All I can see is a skeleton of a class ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    dana_persad is offline Banned
    Join Date
    Nov 2012
    Posts
    3
    Rep Power
    0

    Default Re: Kindly Assist Me With A Java Question PLease

    Quote Originally Posted by dana_persad View Post
    Java Code:
    public class house
    {
       private string houseaddress;
       private string housetype;
       private double sellingprice;
       house( string address, string type, double price)
       {
          houseaddress = address;
          housetype = type;
          sellingprice = price;
       }
       public string gethouseaddress()
       {
       }
       public string gethousetype()
       {
        }
       public double getsellingprice()
       {
       }







    if you have to ask so many questions and be so rude then don't bother. I'm new to this java stuff and i'm trying but you take pleasure in interrogating me.. Go to hell i really don't want your help. I'll get help elsewhere from another site.

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,185
    Rep Power
    20

    Default Re: Kindly Assist Me With A Java Question PLease

    So you dump your homework here with no other stuff.
    Then dump some code, with no hint as to where your problem is.
    And that is somehow Jos' fault?
    SurfMan and Fubarable like this.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,031
    Rep Power
    4

    Default Re: Kindly Assist Me With A Java Question PLease

    What is wrong with these people? "if you have to ask so many questions and be so rude then don't bother". Dafuk did I just read? Perhaps the OP was offended for being called a skeleton? ;)

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Kindly Assist Me With A Java Question PLease

    dana_persad, please go through the Forum Rules -- particularly the third paragraph.

    I also recommend that you learn How to ask questions the smart way.

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

  9. #9
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Kindly Assist Me With A Java Question PLease

    Quote Originally Posted by dana_persad View Post
    if you have to ask so many questions and be so rude then don't bother. I'm new to this java stuff and i'm trying but you take pleasure in interrogating me.. Go to hell i really don't want your help. I'll get help elsewhere from another site.
    You already got much the same questions and responses on another site: java question | DaniWeb

    A forum is not a homework service, and volunteers here are not for you to command. I'm closing this thread. Feel free to start another after going through the links in my post above.

    db

    THREAD CLOSED
    Fubarable likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

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

    Default Re: Kindly Assist Me With A Java Question PLease

    Quote Originally Posted by dana_persad View Post
    if you have to ask so many questions and be so rude then don't bother. I'm new to this java stuff and i'm trying but you take pleasure in interrogating me.. Go to **** i really don't want your help. I'll get help elsewhere from another site.
    That's a very good suggestion, one that I think we'd all benefit from.

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,452
    Rep Power
    20

    Default Re: Kindly Assist Me With A Java Question PLease

    Member dana_persad is permanently banned for using obscene language in a PM to me. This is a violation of the Forum Rules.

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

  12. #12
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,732
    Blog Entries
    7
    Rep Power
    21

    Default Re: Kindly Assist Me With A Java Question PLease

    Quote Originally Posted by DarrylBurke View Post
    Member dana_persad is permanently banned for using obscene language in a PM to me. This is a violation of the Forum Rules.
    We're you also supposed to consume excreta and do you also resemble an odorous female organ? If so, we both received the same message; the part I didn't understand was the accusation that I (we) can't even answer simple Java questions. For the sake of my sanity there wasn't a question asked in this thread until reply #4 ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 4
    Last Post: 01-20-2012, 10:43 AM
  2. mp3 file length..kindly help
    By Saran185 in forum Advanced Java
    Replies: 6
    Last Post: 03-14-2011, 10:50 AM
  3. Kindly Help me..DICE PROGRAM
    By aronkevin in forum Advanced Java
    Replies: 1
    Last Post: 10-08-2010, 08:32 AM
  4. kindly help for getting JcheckBoxes in Jtree
    By sonyerricsonk750i in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2010, 08:14 PM
  5. Kindly assist me...
    By delbg in forum New To Java
    Replies: 7
    Last Post: 02-05-2009, 04:52 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
  •