Make an efficient object-oriented java application

Assignment Help Computer Engineering
Reference no: EM1329404

Create an efficient Object-Oriented Java application that maintains information about college roommates who are renting a house together, for their realtor.

When a house is chosen by the roommates, the user will provide information for it. To allow extensibility, a house object can be created with no information available, the address of the house only or the address of the house, monthly rent and security deposit.

The House class definition should include following instance variables:
- Address
- Number of roommates
- Monthly rent
- Security Deposit

The above class definition should also include following instance methods:
- Validating mutators for the numeric instance variables that are to receive values from the user (including monthly rent - must be between the minimum of $400 and the maximum $2500, and the security deposit - must be between $250 and the monthly rent of the house)
- addARoommate(), that will allow the user to include an additional roommate on the lease (not to exceed the 4 roommate limit - this is a maximum imposed by the realtor for any house)
- Accessors for the instance variables, as well as a toString() method to gather all pertinent information.
- Amount owed by each roommate for individual monthly rent
- Amount owed by each roommate for the entire 12 month lease (which includes their portion of the Security Deposit)

The Realtor application that implements the class described above should prompt the user for the house's address, monthly rent and security deposit. Then the application should process as many roommates (up to 4) the user chooses. The output should include the information on the house (Address, Monthly Rent, and Security Deposit and Total Yearly Income) as well as the number of roommates and their monthly and total financial obligation.

Only one house object is to be manipulated by the application.

Reference no: EM1329404

Questions Cloud

Explain how are people worse off when the price rises : Explain how are people worse off when the price level rises as fast as their incomes
Explain technological workforce : Explain Technological workforce and explain why these issues are important and provide specific recommendations to accomplish each of the points effectively
Increasing company''s market share : Increasing your company's market share is a great way to increase your sales, improve customer and brand loyalty, and reduce your competition.
Determining the future and present values : Write down the advantages and limitations of financial management of future and present values of money, annuities, interest rates, uneven cash flow, and amortization?
Make an efficient object-oriented java application : while a house is chosen by the roommates, the user will give information for it. To allow extensibility, a house object can be created with no information available, address of the house only or the address of the house, monthly rent and security d..
What are some of functional strategies : What are some of functional strategies that affect the supply chain and Meaning what functional organizations affect it? Perhaps the supply chain should direct how the functional organizations operate? What do you think?
Law banning the late-term abortions : Would congress be able to pass a law banning late-term abortions? Why?
Elucidate why does the fed like to fight inflation : Elucidate why does the Fed like to fight inflation in our economy and is inflation a concern right now given our current economic situation.
Finance future value or present value : Calculate the equal annual deposits that you must make for the next 25 years( with the first deposit occurring one year from today) to achieve your desired retirement flow.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Designing a controller for new satellite

You are allocated to work on the project in order to design a controller for the new satellite. In order to save the money, your manager estimates you would reuse around 90% of software from one of two similar satellites the company built in the p..

  Problems on microcomputer applications for management

problems on Microcomputer Applications for Management.

  Definition of method dashedline

Write down the definition of the method dashedLine , with one parameter, an int. If parameter is negative or zero, method does nothing.

  Recognizing the error

Make out error in the following given code:#include //Line 1 using namespace std; //Line 2

  Detail advantages of looping

Detail advantages of looping

  Execute a shell script to read in 3 numbers

Write down and execute a shell script to read in 3 numbers and display which is the largest and which is smallest.

  Computing the cryptosystem

Consider the following cryptosystems and compute which security service(s) (e.g. Authentication, Integrity…etc) they offer: Example: Ek(M) - Confidentiality

  Define the advantages and disadvantages of these metrics

Research at least one possible metric (Business or Technology) that you will use in a project plan for a "Customer Relationship Management Software Development. define the advantages and disadvantages of these metrics

  Describe disparity between vulnerability, threat and control

Describe disparity between vulnerability, threat and control

  Security management model

Write down the sites which will discuss the ongoing responsibilities of security manager, can be adapted for use within the security management model?

  Calculating the average of 50 numbers

Write down a program which calculates the average of up to 50 numbers input by the user and stored in an array. The program must use a class named Statistics and have an AddNumber method which stores numbers into an array.

  What capability vp mode in windows 7 operating system

what are the pros and cons of upgrading an operating system versus installing a new image of OS? Describe some of your own experiences at work or at home.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd