Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer ALL the questions in this section. Question 1 1 . 1 ( Hotel Reservations System ) A newly built hotel has contracted you to
Answer ALL the questions in this section.
Question
Hotel Reservations System A newly built hotel has contracted you to create a new reservation system for its prestige clients. You are to write an application to assign executive rooms on each floor of the hotel. Every floor has executive rooms, and the hotel has floors. Maximum number of executive rooms is
Your application should display the following alternatives: Please type for First floor, Please type for second floor. Please type for tenth floor. If the user types your application should assign an executive room on the first floor rooms or If the user types your application should assign a room on the second floor rooms or and so on up to floor Your application should then display reservation information showing the guest's room number and the floor. The guest's name, and duration of their stay at the hotel. Executive rooms are all inclusive, therefore a guest should be asked if he has any food allergies.
Use a onedimensional array of primitive type boolean to represent the occupation chart of the executive hotel rooms. Initialize all the elements of the array to false to indicate that all the executive rooms are empty. As each room is assigned, set the corresponding element of the array to true to indicate that the room is no longer available.
Please take Note:
Your application should never assign a room that has already been assigned. When a floor is full, your ap ask the guest if they would like to be placed on another available floor. If yes, ask which floor and make room assignments. If no display the message:
We are sorry, we could not provide you a room on the floor of your choice."
code should be in Java
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