Hi there, I need help with problem please.    Chapters from 1 to 5 Concepts tested in this project   All concepts covered by previous projects Repetition control structure The do while/while statements For statement Input validation Use a repetition control structure for EACH user input   Note. As a programmer, you are responsible for your source code covers all scenarios possible in the scope of concepts described in Chapters of this and previous modules (weeks).   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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Hi there, I need help with problem please. 

  •  
  • Chapters from 1 to 5

Concepts tested in this project

 

  • All concepts covered by previous projects
  • Repetition control structure
    • The do while/while statements
    • For statement
  • Input validation
    • Use a repetition control structure for EACH user input

 

Note. As a programmer, you are responsible for your source code covers all scenarios possible in the scope of concepts described in Chapters of this and previous modules (weeks).

 

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

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

 

Refer to Sample outputs for more clarification.

:======
BlueMont Hotel
========:
=====================:
:========= ========= ===
Enter the loacation of this hotel chain: Washington
Enter total number of floors of the hotel:0
number of f loors should be between 1 and 5 !! please try again.
Enter total number of floors of the hotel:6
number of floors should be between 1 and 5 !! please try again.
Enter total number of f loors of the hotel:1
Enter total number of rooms in the 1th_Floor:0
number of rooms should be between 1 and 30 !! Please try again.
Enter total number of rooms in the 1th Floor:31
number of rooms should be between 1 and 30 !! Please try again.
Enter total number of rooms in the ith Floor:30
How many SINGLE rooms are accupied in the 1th floor:10
How many DOUBLE rooms are accupied in the 1th floor:0
How many KING_rooms are accupied in the 1th floor:0
How many SUITE are accupied in the ith floor:0
===
======
BlueMont Hotel located in Washington
TODAY'S ROOM RATES CUS$/night)
Single Room
Double Room
king Room
Suite Room
60
75
100
150
==
======+=======
Hotel Income:
Total # of rooms:
Total # Occupied Rooms:
Total # Un0ccupied Rooms:
Occupancy rate
$600.00
30
10
20
33.33%
1th Floor with 30 rooms, has the least number of rooms.
Need to improve Hotel occupancy rate!!
Thank you for testing my program!!
PROGRAMMER: YOUR NAMĚ
CMSC140 Common_Project_3
Due Date: PROJECT ĎUE DATE
Press any key to continue
Transcribed Image Text::====== BlueMont Hotel ========: =====================: :========= ========= === Enter the loacation of this hotel chain: Washington Enter total number of floors of the hotel:0 number of f loors should be between 1 and 5 !! please try again. Enter total number of floors of the hotel:6 number of floors should be between 1 and 5 !! please try again. Enter total number of f loors of the hotel:1 Enter total number of rooms in the 1th_Floor:0 number of rooms should be between 1 and 30 !! Please try again. Enter total number of rooms in the 1th Floor:31 number of rooms should be between 1 and 30 !! Please try again. Enter total number of rooms in the ith Floor:30 How many SINGLE rooms are accupied in the 1th floor:10 How many DOUBLE rooms are accupied in the 1th floor:0 How many KING_rooms are accupied in the 1th floor:0 How many SUITE are accupied in the ith floor:0 === ====== BlueMont Hotel located in Washington TODAY'S ROOM RATES CUS$/night) Single Room Double Room king Room Suite Room 60 75 100 150 == ======+======= Hotel Income: Total # of rooms: Total # Occupied Rooms: Total # Un0ccupied Rooms: Occupancy rate $600.00 30 10 20 33.33% 1th Floor with 30 rooms, has the least number of rooms. Need to improve Hotel occupancy rate!! Thank you for testing my program!! PROGRAMMER: YOUR NAMĚ CMSC140 Common_Project_3 Due Date: PROJECT ĎUE DATE Press any key to continue
|C\Windows\system32\cmd.exe
C:.
BlueMont Hotel
======
%===
Enter the loacation of this hotel chain: LA
Enter total number of floors of the hotel:2
Enter total number of rooms in the ith Floor:20
How many SINGLE rooms are accupied in the 1th floor:10
How many DOUBLE rooms are accupied in the 1th floor:2
How many KING_rooms are accupied in the 1th floor:1
How many SUITE are accupied in the 1th floor:1
Enter total number of roons in the 2th Floor:10
How many SINGLE rooms are accupied in the 2th floor:5
How many DOUBLE rooms are accupied in the 2th_floor:1
How many KING rooms are accupied in the 2th floor:0
How many SUITE are accupied in the 2th floor:0
===
===== ===== =======
====
======:
BlueMont Hotel located in LA
TODAY'S ROOM RATES CUS$/night)
Single Room
Double Room
king Room
Suite Room
60
75
100
150
:=======:
:====+=======
Hotel Income:
Total # of rooms:
Total # Occupied Rooms:
Total # Un0ccupied Rooms:
Occupancy rate
$1375.00
30
20
10
66.67%
2th Floor with 10 rooms, has the least number of rooms.
Thank you for testing my program!!
PROGRAMMER: YOUR NAMĒ
CMSC140 Common Project 3
Due Date: PROJECT ĎUE DATE
Press any key to continue . .
Transcribed Image Text:|C\Windows\system32\cmd.exe C:. BlueMont Hotel ====== %=== Enter the loacation of this hotel chain: LA Enter total number of floors of the hotel:2 Enter total number of rooms in the ith Floor:20 How many SINGLE rooms are accupied in the 1th floor:10 How many DOUBLE rooms are accupied in the 1th floor:2 How many KING_rooms are accupied in the 1th floor:1 How many SUITE are accupied in the 1th floor:1 Enter total number of roons in the 2th Floor:10 How many SINGLE rooms are accupied in the 2th floor:5 How many DOUBLE rooms are accupied in the 2th_floor:1 How many KING rooms are accupied in the 2th floor:0 How many SUITE are accupied in the 2th floor:0 === ===== ===== ======= ==== ======: BlueMont Hotel located in LA TODAY'S ROOM RATES CUS$/night) Single Room Double Room king Room Suite Room 60 75 100 150 :=======: :====+======= Hotel Income: Total # of rooms: Total # Occupied Rooms: Total # Un0ccupied Rooms: Occupancy rate $1375.00 30 20 10 66.67% 2th Floor with 10 rooms, has the least number of rooms. Thank you for testing my program!! PROGRAMMER: YOUR NAMĒ CMSC140 Common Project 3 Due Date: PROJECT ĎUE DATE Press any key to continue . .
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY