Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . 1 ( Hotel Reservations System ) A newly built hotel has contracted you to create a new reservation system for its prestige clients.

1.1(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 2 executive rooms, and the hotel has 10 floors. Maximum number of executive rooms is 20.1.2 Your application should display the following alternatives: Please type 1 for First floor, Please type 2 for second floor............ Please type 10 for tenth floor. If the user types 1, your application should assign an executive room on the first floor (rooms 11 or 12). If the user types 2, your application should assign a room on the second floor (rooms 21or 22) and so on up to floor 10. Your application should then display reservation information showing the guests room number and the floor. The guests 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.1.3 Use a one-dimensional 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:[60 MARKS](60 Marks)(20 marks)(20 marks)(20 marks)Your application should never assign a room that has already been assigned. When a floor is full, your application should ask the guest if they would like to be placed on another available floor. If yes, ask which floor and make the appropriate room assignments. If no, display the message:"We are sorry, we could not provide you a room on the floor of your choice."Format: Question 1.1 Question 1.2 Question 1.3TOTALMark202020

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions