Answered step by step
Verified Expert Solution
Link Copied!

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
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

What is one of the skills required for independent learning?Explain

Answered: 1 week ago