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

  Six phases in the data analytics lifecycle

There are six phases in the data analytics lifecycle. Please describe each with applicable real-world examples

  What are threads

What are threads? Why are they required? Discuss the differentiate between Kernel level and user level threads?

  Problems to avoid plagiarizing

How can procrastination and pressure to succeed lead to plagiarism? What are some other reasons students might resort to plagiarism? How can you combat these problems to avoid plagiarizing?

  Types of malware and describe their behaviors

Name two types of Malware and briefly describe their behaviors. what are the processes you could use to detect and remove malicious software in a system?

  Group of customer and what prices will be charged

Determine the quantity it should sell each group of customer and what prices will be charged

  The roles and responsibilities for risk management

How risk mitigation strategy planning can reduce the likelihood and/or impact of risks. The roles and responsibilities for risk management

  Characteristic of high reliability organizations

What was one cause in the delay in the completing of the Denver Airport. What is one characteristic of high reliability organizations?

  What dollar amount must you deposit

What should happen at the end of the first year (that is, what dollar amount must you deposit) to ensure this?

  What will the cash flows for project be

If your cost of capital is 8 percent and your firm faces a 34 percent tax rate. What will the cash flows for this project be?

  Ordering of product for the business to sell

In your initial post, fully explain the information and/or make predictions for the future based on your findings. For example, if you are using previous sales for your data set, you might want to predict future sales or suggest wholesale ordering..

  Fashion thinking

Sustainable Fashion Influencers are important in building awareness of fashion sustainability and bringing attention to sustainable fashion brands.

  Identify those aspects of the system that may change

Categorize the following systems as S-, P-, or E-systems. For each one, explain why it belongs in that category. Identify those aspects of the system that may change.

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