Create an efficient object-oriented java application

Assignment Help JAVA Programming
Reference no: EM13940444

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: EM13940444

Questions Cloud

Who should be responsible for workers safety : Who should be responsible for workers safety? Why? Weigh up the rights and responsibilities of the employer and employee? Which has a higher weighting, and why?
Cost of an accountant : The cost of an accountant for Carlos Candies  static budget based on expected activity of 2,000 units
Camp company uses a job-order costing system : Camp Company uses a job-order costing system. The company has two departments through which most jobs pass. Selected budgeted and actual data for the past year follow:
Legal or moral right to own a gun : Do you have not only a legal, but a moral right to own a gun? Do you believe that you have either a moral or a legal right to park a car with a loaded gun in a privately owned parking lot, regardless of what the lot's owner wants?
Create an efficient object-oriented java application : Create an efficient Object-Oriented Java application that maintains information about college roommates who are renting a house together, for their realtor.
What are the total monthly manufacturing costs : What are the total monthly manufacturing costs? What are the total monthly prime costs? Total monthly prime costs for the regional magazine? For the brochure?
Compare characteristics of men and women on death row : Compare and contrast the characteristics of men and women on death row. Discuss why there are fewer women on death row than men and explain the significance of this difference.
Determine torque required to overcome the fluid resistance : Determine the torque T required to overcome the fluid resistance and rotate the tube with a constant angular velocity of w. Assume the velocity profile within the liquid is linear.
Standard server and the ms sql standard database : In assignment 2 you will be installing Windows 2012 Standard Server and the MS SQL Standard database. In order to do this, you should have a set approach that outlines  what you need to do, how to do it, in what order and why you are doing it. You ..

Reviews

Write a Review

JAVA Programming Questions & Answers

  What are the various types of dns servers and their purpose

question 1 what is the role of dns how is it structured and why it is necessary?question 2 what are the different kinds

  Enhance the test score applicaion

Enhance the Test Score applicaion so it uses a "while" or a "do-while" loop plus a for loop - Change the while statement to a do-while statement, andtest this change. Does this work any better than the while loop?

  The bookstore wants you to make an object-oriented model

student bookstore at pleasant creek community college situation the bookstore staff at pleasant creek community college

  Provide java code to create and initialize an array

Provide Java code to create and initialize an array of integers (Java primitive int), floats or any other Java primitive type of your choice. You pick the array name and length.

  User enters a list of car parts

So if the user enters a list of car parts, the programm holds this list. Afterward, when the user types in the name of the part the programm outputs that name from the list.

  User interface menu using doubly linked lists

Each mNode defines the main menu item name, two links to its mNode neighbors (the previous and next mNode) and a link to its first submenu node.

  Robot preparing for competition

Create an event so that the skateboard can be controlled by game player

  What can a catch block do with the exception object

What can a catch block do with the exception object that it receives and write lines of code to create object input and output streams for the file c:\temp\mydata.out

  Create a new class called dwelling

1 Create a new class called Dwelling that includes the functionality below 2.    The new class has the attributes of: category - dwelling's category (i.e.:"House", "Condo", "Apartment","shach",etc.), type String numberOfBedrooms - the number of bedro..

  You need to find out the average score how many scores are

suppose that you have an array of baseball scores type integer called scores. the values in the array are ordered from

  Write a program that evaluates the day of the week for new

write a program that evaluates the day of the week for new years day in the year 3000. to do this you must create your

  Method that reads a text file and returns a list of tokens

Write a method that reads in a text file and returns a list of the tokens (preferably alphanumeric) in that file. Write a method to print out frequency results.

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