Project Description The BlueMont chain hotels have 4 different types of room: Single room: $60/night Double room: $75/night King room: $100/night Suite room: $150/night The size of the hotel chains in different locations may be different in terms of the number of floors and the type and the number of rooms on each floor. You are required to write a program that calculates the occupancy rate and the total hotel income for one night and displays this information as well as some other information described below. The program starts by asking the location where this hotel chain is located and the number of floors in the hotel. The number of floors may not exceed 5. The User then enters the total number of rooms for each floor. The program then asks specifically the om tuno on this floor The total numher of rooms on

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I only want the flow chart. I do not need the code, output, or screenshot.

Repetition control structure
The do.. while/while statements
o The for statement
Input validation
'o Use a repetition control structure for EACH user input
Project Description
The BlueMont chain hotels have 4 different types of room:
Single room: $60/night
Double room: $75/night
King room: $100/night
Suite room: $150/night
The size of the hotel chains in different locations may be different in terms of the number
of floors and the type and the number of rooms on each floor.
You are required to write a program that calculates the occupancy rate and the total hotel
income for one night and displays this information as well as some other information
described below.
The program starts by asking the location where this hotel chain is located and the
number of floors in the hotel. The number of floors may not exceed 5. The User then
enters the total number of rooms for each floor. The program then asks specifically the
number of occupied rooms for each room type on this floor. The total number of rooms on
each floor may not exceed 30 and the program should check that the total number of
occupied rooms on each floor does not exceed the total of rooms on that floor.
After the information is entered for each floor, the program calculates the following:
- Hotel income (based on the room type and its rate),
The total number of occupied rooms,
Total number of the uncopied rooms,
- The rate of occupancy,
Floor number with the minimum number of rooms. (Assume no two floors have the
same number of rooms).
- A message to improve the occupancy rate for the occupancy rate of less than 60%.
Programmer's full name
- Project number
Transcribed Image Text:Repetition control structure The do.. while/while statements o The for statement Input validation 'o Use a repetition control structure for EACH user input Project Description The BlueMont chain hotels have 4 different types of room: Single room: $60/night Double room: $75/night King room: $100/night Suite room: $150/night The size of the hotel chains in different locations may be different in terms of the number of floors and the type and the number of rooms on each floor. You are required to write a program that calculates the occupancy rate and the total hotel income for one night and displays this information as well as some other information described below. The program starts by asking the location where this hotel chain is located and the number of floors in the hotel. The number of floors may not exceed 5. The User then enters the total number of rooms for each floor. The program then asks specifically the number of occupied rooms for each room type on this floor. The total number of rooms on each floor may not exceed 30 and the program should check that the total number of occupied rooms on each floor does not exceed the total of rooms on that floor. After the information is entered for each floor, the program calculates the following: - Hotel income (based on the room type and its rate), The total number of occupied rooms, Total number of the uncopied rooms, - The rate of occupancy, Floor number with the minimum number of rooms. (Assume no two floors have the same number of rooms). - A message to improve the occupancy rate for the occupancy rate of less than 60%. Programmer's full name - Project number
number of floors in the hotel. The number of floors may not exceed 5. The User then
enters the total number of rooms for each floor. The program then asks specifically the
number of occupied rooms for each room type on this floor. The total number of rooms on
each floor may not exceed 30 and the program should check that the total number of
occupied rooms on each floor does not exceed the total of rooms on that floor.
After the information is entered for each floor, the program calculates the following:
- Hotel income (based on the room type and its rate),
- The total number of occupied rooms,
- Total number of the uncopied rooms,
- The rate of occupancy,
Floor number with the minimum number of rooms. (Assume no two floors have the
same number of rooms).
A message to improve the occupancy rate for the occupancy rate of less than 60%.
- Programmer's full name
- Project number
- Project due date
Project Specifications
-Use constant variables to hold room rates, max and min # of floors and rooms.
-The program should continuously ask for the correct floor number if it is not within the
range of 1 and 5.
-The program should continuously ask for the correct number of rooms for each floor if it
is not within the range of 1 and 30.
-The program should repeat the process of asking the number of rooms on the floor and
number of occupied rooms if the total number of occupied rooms exceeds the total
number of rooms on the floor.
Transcribed Image Text:number of floors in the hotel. The number of floors may not exceed 5. The User then enters the total number of rooms for each floor. The program then asks specifically the number of occupied rooms for each room type on this floor. The total number of rooms on each floor may not exceed 30 and the program should check that the total number of occupied rooms on each floor does not exceed the total of rooms on that floor. After the information is entered for each floor, the program calculates the following: - Hotel income (based on the room type and its rate), - The total number of occupied rooms, - Total number of the uncopied rooms, - The rate of occupancy, Floor number with the minimum number of rooms. (Assume no two floors have the same number of rooms). A message to improve the occupancy rate for the occupancy rate of less than 60%. - Programmer's full name - Project number - Project due date Project Specifications -Use constant variables to hold room rates, max and min # of floors and rooms. -The program should continuously ask for the correct floor number if it is not within the range of 1 and 5. -The program should continuously ask for the correct number of rooms for each floor if it is not within the range of 1 and 30. -The program should repeat the process of asking the number of rooms on the floor and number of occupied rooms if the total number of occupied rooms exceeds the total number of rooms on the floor.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education