Hotel occupancy rate

Assignment Help Basic Computer Science
Reference no: EM132665655

A hotel's occupancy rate is calculated as follows:

Occupancy rate=Number of rooms occupied÷Total number of rooms

Write a program that calculates the occupancy rate for each floor of a hotel. The program should start by asking for the number of floors in the hotel. A loop should then iterate once for each floor. During each iteration, the loop should ask the user for the number of rooms on the floor and the number of them that are occupied. After all the iterations, the program should display the number of rooms the hotel has, the number of them that are occupied, the number that are vacant, and the occupancy rate for the hotel.

Input Validation: Do not accept a value less than 1 for the number of floors. Do not accept a number less than 10 for the number of rooms on a floor.

Reference no: EM132665655

Questions Cloud

Calculated the gross income of this dental practice : Has Dr. Payne correctly calculated the gross income of this dental practice? Is there alternative method of accounting that would result in less taxable income
What is the cost of direct materials used during the period : What is the amount of total manufacturing costs during the period? What is the cost of direct materials used during the period?
Focus for information governance efforts : We learned that e-mail is a major area of focus for information governance (IG) efforts, and has become the most common business software application
Compute cost of goods sold and cost of direct labor used : As consultants, we are hired to help the company track and report costs. Compute cost of goods sold. (Do not consider underapplied or overapplied overhead)
Hotel occupancy rate : Write a program that calculates the occupancy rate for each floor of a hotel. The program should start by asking for the number of floors in the hotel.
What is the amount of the child tax credit : The Koz family has adjusted gross income of $300,000. What is the amount of the child tax credit on the couple's income tax return
Was the incident chose an instance of measurement error : Was the incident you chose an instance of measurement error or measurement bias? What action did the company take that resulted in error or bias?
List the security advantages of cloud-based solutions : List the security advantages of cloud-based solutions. List the security disadvantages of cloud-based solutions.
Prepare a production cost report for december : Prepare a production cost report for December to calculate the equivalent units of production, cost per equivalent unit and to assign the cost to inventory.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd