Question: In this project, you are required to write a project for a hotel management system: Phase 1 will be as follows: Write a java program

In this project, you are required to write a project for a hotel management system: Phase 1 will be as follows:
Write a java program that keeps displaying the main menu containing the following options:
a. Show All Rooms
b. Show Available rooms (isOccupied = false)
c. Change room details
d. Search by room type
e. Search by capacity
f. Quit
1) Class name: Room.java.
a) A room has the following details
(1) Integer Room number
(2) Integer Floor number (from 1 to 5)
(3) String Room Type (Standard, Family, Suite)
(4) Boolean isOccupied
(5) Integer capacity
(6) Double pricePerNight
(7) Rooms on the first 20 rooms (1 to 20) are standard, rooms: 21 to 40 are Family, and rooms: 41 to 50 are
Suite. All rooms have isOccupied = false, and capacity =2, pricePerNight=100. Room numbers are
numbered from 101 to 110 with floor number=1,201 to 210 with floor number =2,301 to 310 with floor
number =3,401 to 410 with floor number =4, and 501 to 510 with floor number=5.
b) Write appropriate setters and getters for the room class, and toString method.
c) Write appropriate methods to validate correct room numbers, room types, and capacities (assume valid capacity
is from 1 to 10).
2) Class name: RoomManagement.java: Room Management System which includes a one dimesional array of rooms of
the Room Class (array size =50). The Room management system allows the following behavior:
a) Show all rooms.
b) Show Available rooms.
c) Change room details: to allow to change the following room details at the same time: room type, isOccupied,
capacity, pricePernight.
d) Search by room type
e) Search by capacity
3) Create a Driver class that allow shows the menu above and creates a RoomManagement object and when selecting
Room Management System allows the above behavior. All keyboard input should occur in the driver class.
*Notes:
Keep it simple as possiple
Dont use advanced concebts Just basics

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!