1,105,371 Community Members

java question

Member Avatar
dana.persad.5
Newbie Poster
2 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

i need help to write a code for the folllowing question.

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
***

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()
   {

   }

the class has to be something like this

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
0
 

Do you have any specific questions you'd like to ask about your assignment?

Member Avatar
dana.persad.5
Newbie Poster
2 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

with this there is three classes i jus need an example and i cud move on frm there. It would be very nice if someone could help me

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
0
 

i just need an example

You posted a sample of a class in your first post. Is there a problem with that code?
If so, please post it and we'll try to help you fix it.

javabitch.04
Newbie Poster
1 post since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
-1
 

are you illiterate that you can't write a simple program? do it yourself and stop asking people to help you.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article