1 Computer Networks And The Internet 2 Application Layer 3 Transport Layer 4 The Network Layer: Data Plane 5 The Network Layer: Control Plane 6 The Link Layer And Lans 7 Wireless And Mobile Networks 8 Security In Computer Networks 9 Multimedia Networking Chapter1: Computer Networks And The Internet
1.1 What Is The Internet? 1.2 The Network Edge 1.3 The Network Core 1.4 Delay, Loss, And Throughput In Packet-switched Networks 1.5 Protocol Layers And Their Service Models 1.6 Networks Under Attack 1.7 History Of Computer Networking And The Internet 1.8 Summary Chapter Questions Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end... Problem R2RQ: The word protocol is often used to describe diplomatic relations. How does Wikipedia describe... Problem R3RQ: Why are standards important for protocols? Problem R4RQ Problem R5RQ Problem R6RQ Problem R7RQ Problem R8RQ Problem R9RQ Problem R10RQ Problem R11RQ Problem R12RQ: What advantage does a circuit-switched network have over a packet-switched network? What advantages... Problem R13RQ Problem R14RQ Problem R15RQ Problem R16RQ Problem R17RQ Problem R18RQ Problem R19RQ: Suppose Host A wants to send a large file to Host B. The path from Host A to Host B has three links,... Problem R20RQ Problem R21RQ Problem R22RQ Problem R23RQ: What are the five layers in the Internet protocol stack? What are the principal responsibilities of... Problem R24RQ Problem R25RQ Problem R26RQ Problem R27RQ Problem R28RQ Problem P2P: Equation 1.1 gives a formula for the end-to-end delay of sending one packet of length L over N links... Problem P3P Problem P4P Problem P5P Problem P6P: This elementary problem begins to explore propagation delay and transmission delay, two central... Problem P7P Problem P8P: Suppose users share a 3 Mbps link. Also suppose each user requires 150 kbps when transmitting, but... Problem P9P Problem P10P Problem P11P: In the above problem, suppose R1 = R2 = R3 = R and dproc = 0. Further suppose the packet switch does... Problem P13P Problem P14P: Consider the queuing delay in a router buffer. Let I denote traffic intensity; that is, I = La/R.... Problem P15P Problem P16P Problem P17P Problem P20P Problem P21P Problem P22P Problem P23P Problem P24P Problem P25P Problem P26P Problem P27P Problem P28P Problem P29P Problem P30P Problem P31P Problem P32P Problem P33P Problem P34P Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
in C++ language, program , and include the flowchart using the nested while loops. Thank you
Transcribed Image Text: Project Description
The BlueMont chain hotels have 4 different types of rooms:
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 for 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: Sample output#1
====== ====== ===
BlueMont Hotel
Enter the location for this hotel chain: Washington
Enter the total number of floors in this hotel: 0
Number of floors should be between 1 and 5. Please try again!!
Enter the total number of floors in this hotel: 6
Number of floors should be between 1 and 5. Please try again!!
Enter the total number of floors in this hotel: 1
Enter the total number of rooms on floor 1 : e
Number of rooms should be between 1 and 30. Please try again!!
Enter the total number of rooms on floor 1 : 31
Number of rooms should be between 1 and 30. Please try again!!
Enter the total number of rooms on floor 1 : 30
How many SINGLE rooms are occupied on floor 1 ? 10
How many DOUBLE rooms are occupied on floor 1 ? 0
How many KING rooms are occupied on floor 1 ? 0
How many SUITES are occupied on floor 1 ? e
=======:
BlueMont Hotel located at Washington
=================
Today's Room Rates (Us$/night)
Double Room
Single Room
King Room
Suite Room
60
75
100
150
Hotel Income :
$600
Total # of Rooms :
30
Total # of Occupied Rooms :
Total # of Unoccupied Rooms :
Occupancy Rate :
10
20
33.33%
floor 1 with 30 rooms has the least # of rooms.
Need to improve Hotel occupancy rate!!
Thank you for testing my program!
PROGRAMMER: insert your name here
CMSC140 Common Project 3
Due Date: April 9, 2021
Process by which instructions are given to a computer, software program, or application using code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Step 1 while loop and do/while loop
VIEW
Trending now
This is a popular solution!
Step by step
Solved in 2 steps