please write the code in java & and follow assignment directions. Exercise Module 1 CPRG251: Write a
Fantastic news! We've Found the answer you've been seeking!
Question:
please write the code in java & and follow assignment directions.
Transcribed Image Text:
Exercise Module 1 CPRG251: Write a program in which you use Objects in your code The program is a house management system. When the user runs it, the program should display for the user a menu that he/she selects from. Use this text to extract the names of classes that you will use in the implementation (hint: you will find 3 classes): Each community is formed of many houses. The community is in the north part of the city and there are specific number of houses in it. Each house has a number, address, number of rooms, color, may have a garage, rooms. Each room in the house has a name (for example Kitchen), color, height, width, length, and may or may not have a window. A example of the menu: Welcome in AMH Company: How May We Assist You? Display Community Information Add House 5 6 Display house information Add Room Display room information Exit Enter option: Use OOP in your program and methods. Everything should be classes and methods. No code in the main class (just few lines in which you call a method in another class). Divide your code into 3 packages: 1- Application: includes the main class 2- Problem domain: classes 3- Utilities: the class that has the methods needed A sample run is shown below (optional: I used some hard coded values, you might let the user enter them like house information, pick which house to display its info.....): Welcome in AMH Company: How May We Assist You? Display Community Information Add House Display house information Add Room 1 2 3 A 4 Display room information Exit Enter option: 1 r 5 . 6 Community [numberOfHouses-0, Bactofcity-North, houses=null] Welcome in AMH Company: How May We Assist You? Display Community Information Add House Display house information Add Room 1 I 2 2 3 3 4 Display room information Exit Enter option: 5 3 6 2 € Welcome in AMH Company: How May We Assist You? Display Community Information Add House Display house information Add Room 2 3 4 4 5 Display room information Exit Enter option: 1 6 0 Community [numberOfHouses=1, Bactofcity-North, houses [House [number=1, address=123 Calgary Horn, numberOfRooms=5, HouseColor-Gray, hasGarage=true, rooms=[]]]] Welcome in AMH Company: How May We Assist You? Display Community Information Add House + 2 3 4 5 . 6 Display room information Exit Enter option: 7 3 Display house information Add Room House House number: 1 House address: 123 Calgary Horn House numberQfRooms: 5 House HouseColor: Gray House hasGarage: true House rooms: [] Welcome in AMH Company: How May We Assist You? Display Community Information Add House 1 2 Exercise Module 1 CPRG251: Write a program in which you use Objects in your code The program is a house management system. When the user runs it, the program should display for the user a menu that he/she selects from. Use this text to extract the names of classes that you will use in the implementation (hint: you will find 3 classes): Each community is formed of many houses. The community is in the north part of the city and there are specific number of houses in it. Each house has a number, address, number of rooms, color, may have a garage, rooms. Each room in the house has a name (for example Kitchen), color, height, width, length, and may or may not have a window. A example of the menu: Welcome in AMH Company: How May We Assist You? Display Community Information Add House 5 6 Display house information Add Room Display room information Exit Enter option: Use OOP in your program and methods. Everything should be classes and methods. No code in the main class (just few lines in which you call a method in another class). Divide your code into 3 packages: 1- Application: includes the main class 2- Problem domain: classes 3- Utilities: the class that has the methods needed A sample run is shown below (optional: I used some hard coded values, you might let the user enter them like house information, pick which house to display its info.....): Welcome in AMH Company: How May We Assist You? Display Community Information Add House Display house information Add Room 1 2 3 A 4 Display room information Exit Enter option: 1 r 5 . 6 Community [numberOfHouses-0, Bactofcity-North, houses=null] Welcome in AMH Company: How May We Assist You? Display Community Information Add House Display house information Add Room 1 I 2 2 3 3 4 Display room information Exit Enter option: 5 3 6 2 € Welcome in AMH Company: How May We Assist You? Display Community Information Add House Display house information Add Room 2 3 4 4 5 Display room information Exit Enter option: 1 6 0 Community [numberOfHouses=1, Bactofcity-North, houses [House [number=1, address=123 Calgary Horn, numberOfRooms=5, HouseColor-Gray, hasGarage=true, rooms=[]]]] Welcome in AMH Company: How May We Assist You? Display Community Information Add House + 2 3 4 5 . 6 Display room information Exit Enter option: 7 3 Display house information Add Room House House number: 1 House address: 123 Calgary Horn House numberQfRooms: 5 House HouseColor: Gray House hasGarage: true House rooms: [] Welcome in AMH Company: How May We Assist You? Display Community Information Add House 1 2
Expert Answer:
Answer rating: 100% (QA)
Creating a program with three packages as specified handling house management system and using objec... View the full answer
Related Book For
Statistics For Managers Using Microsoft Excel
ISBN: 9780133130805
7th Edition
Authors: David M. Levine, David F. Stephan, Kathryn A. Szabat
Posted Date:
Students also viewed these programming questions
-
Requirement 1. Journalize The Book Store Oct. 10: Indianriver.com sells 4,500 books on account for $ 12 each on October 10 to The Book Store Record the transaction on the books of The Book Store...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The summary of financial statements for division A is given below. Statement of Financial Position Statement of Profit or Loss RM'000 RM'000 Non-current assets 1,500 Revenue 4,000 Current assets 600...
-
A helicopter is ascending vertically with a speed of 5.40 m / s. At a height of 105 m above the Earth, a package is dropped from the helicopter. How much time does it take for the package to reach...
-
A postaudit a. is a follow-up analysis of a capital project, once implemented. b. compares the actual benefits with the estimated benefits. c. evaluates the overall outcome of the investment. d....
-
Epic Systems is a Wisconsin health care software company. In 2014, Epic introduced a company policy that required employees to use individual arbitration in any disputes. Jacob Lewis, an Epic...
-
Horace Greeley Corporation was organized in 2013 and began operations at the beginning of 2014. The company is involved in interior design consulting services. The following costs were incurred prior...
-
Part E Constants A rigid, uniform, horizontal bar of mass m and length is supported by two identical massless strings. (Figure 1)Both strings are vertical. String A is attached at a distance d < L/2...
-
Severo S.A. of Sao Paulo, Brazil, is organized into two divisions. The companys contribution format segmented income statement (in terms of the Brazilian currency, the real, R) for last month is...
-
Repairs arrive at a small-engine repair shop in a totally random fashion at the rate of 10 per day. 1. What is the average number of jobs that are received daily at the repair shop. 2. What is the...
-
The tax rate schedule is as follows: 0 to 10,000 10% 10,001-50,000 20% 50001-100,000 25% What is the amount of taxes to be paid on an income of 85,000?
-
Melissa plans to sell her car next month and invest the proceeds into her Tax-Free Savings Account. In 6 months from now, she's expecting to get a raise at her job as a marketing assistant. In 3...
-
How do cellular reprogramming strategies, including induced pluripotent stem cells (iPSCs) and somatic cell dedifferentiation, inform our understanding of the molecular mechanisms underlying cloning...
-
Ajax Corp's sales last year were $460,000, its operating costs were $362,500, and its interest charges were $12,500. What was the firm's times-interest-earned (TIE) ratio?
-
what ways do advancements in assisted reproductive technologies (ARTs), such as in vitro fertilization (IVF) and intracytoplasmic sperm injection (ICSI), intersect with cloning methodologies to...
-
In March 2017, Simon Becker and several investors established a business to provide football training services. The business began operations immediately. Transactions during the month of March were...
-
Use multiplication or division of power series to find the first three nonzero terms in the Maclaurin series for each function. y = e x2 cos x
-
How do Americans feel about ads on websites? A survey of 1,000 adult Internet users found that 670 opposed ads on websites. (Data extracted from S. Clifford, 'Tracked for Ads? Many Americans Say No...
-
A mail-order catalog business that sells personal computer supplies, software, and hard- ware maintains a centralized warehouse for the distribution of products ordered. Management is currently...
-
The data on page 616 (stored in ThruSpeed) represent the average time (in seconds) it took to be served at the drive-through at McDonald's from 1998 to 2009: a. Plot the time series. b. Fit a...
-
Martin Galloway, the sole proprietor of a consulting business, has gross receipts of $45,000 in 2017. His address is: 1223 Fairfield Street, Westfield, New Jersey and his SSN is 158-68-7799. Expenses...
-
Probest Corporation (a calendar-year corporation) purchased and placed the following assets in service during the year All assets are used 100 percent for business. $100,000 of the cost of the...
-
In May 2016, Jose purchased a used automobile for $12,000 and used it 75 percent for business. No Section 179 election was made for this asset. In 2017, Joses business use of the automobile decreased...
Study smarter with the SolutionInn App