Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Class name: Room.java.
a A room has the following details
Integer Room number
Integer Floor number from to
String Room Type Standard Family, Suite
Boolean isOccupied
Integer capacity
Double pricePerNight
Rooms on the first rooms to are standard, rooms: to are Family, and rooms: to are
Suite. All rooms have isOccupied false, and capacity pricePerNight Room numbers are
numbered from to with floor number to with floor number to with floor
number to with floor number and to with floor number
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 to
Class name: RoomManagement.java: Room Management System which includes a one dimesional array of rooms of
the Room Class array size 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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started