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
2
0
rooms
(
1
to
2
0
)
are standard, rooms:
2
1
to
4
0
are Family, and rooms:
4
1
to
5
0
are
Suite. All rooms have isOccupied
=
false, and capacity
=
2
,
pricePerNight
=
1
0
0
.
Room numbers are
numbered from
1
0
1
to
1
1
0
with floor number
=
1
,
2
0
1
to
2
1
0
with floor number
=
2
,
3
0
1
to
3
1
0
with floor
number
=
3
,
4
0
1
to
4
1
0
with floor number
=
4
,
and
5
0
1
to
5
1
0
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
1
0
)
.
2
)
Class name: RoomManagement.java: Room Management System which includes a one dimesional array of rooms of
the Room Class
(
array size
=
5
0
)
.
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.
*
Note:
keep each class code seperated under the class name( EX: Room Manegment then its code)
becarfull not to use chatGPT in any part of the solution

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!