Question: please write the code in java & and follow assignment directions. Exercise Module 1 CPRG251: Write a program in which you use Objects in your
please write the code in java & and follow assignment directions.

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
Step by Step Solution
3.36 Rating (149 Votes )
There are 3 Steps involved in it
Creating a program with three packages as specified handling house management system and using objec... View full answer
Get step-by-step solutions from verified subject matter experts
