Write program that calculates the occupancy rate for a hotel

Assignment Help Basic Computer Science
Reference no: EM131236383

Write a program that calculates the occupancy rate for a hotel. The program should start by asking the user how many floors the hotel has. A loop should then iterate once for each floor. In each iteration, the loop should ask the user for the number of rooms on the floor and how many of them are occupied. After all the iterations, the program should display how many rooms the hotel has, how many of them are occupied, how many are unoccupied, and the percentage of rooms that are occupied. The percentage may be calculated by dividing the number of rooms occupied by the number of rooms.

Reference no: EM131236383

Questions Cloud

Write your own mission statements of mcdonalds : Write your own mission statements of McDonald's and In-N-Out based on your research. Compare these official mission statements to your own mission statements. What are differences?
Describe the mayan-aztec and incan empires : Describe the Mayan, Aztec and Incan Empires. Why did the Spanish have such rapid success against the Aztec and Inca empires?
Display an error message and display the menu again : This process is repeated until the user chooses to quit the program. Input Validation: If the user selects an item not on the menu, display an error message and display the menu again.
Write a two page opinion paper on keeping prisoners : Write a two page opinion paper on keeping prisoners at Guantanamo Bay. What is the purpose? Should these prisoners be given the same rights as American citizens? Should they be given the right of "habeas corpus?"
Write program that calculates the occupancy rate for a hotel : The percentage may be calculated by dividing the number of rooms occupied by the number of rooms.
How does hamburger university support mission of mcdonalds : How does Hamburger University support the mission of McDonalds? Name at least five ways and discuss. Find McDonald's mission statement, values and goals, and provide the URL.
Calculate the maximum fanout : In the TTL circuit in Figure, the transistor parameters are βF = 20 and βR = 0.10. - Calculate the maximum fanout for vX = vY = 5 V. - Calculate the maximum fanout for vX = vY = 0.1 V.
Calculate the average rainfall over a period of years : Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years.
Find a stable state in a hopfield neural network : Consider the problem of finding a stable state in a Hopfield neural network, in the special case when all edge weights are positive. This corresponds to the Maximum-Cut Problem that we discussed earlier in the chapter: For every edge e in the grap..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Is there a difference in wine quality

Analyze the data from this experiment. Is there a difference in wine quality? Analyze the residuals and comment on model adequacy.

  Write the main program to generate random numbers

To compare the performance, you need to write the main program to generate random numbers to populate a large integer array, and then call the subroutine to sort this array. Remember to get the time before and after the bubble sort to measure the ..

  Discuss practice when securing microsoft windows application

Discuss best practices when securing Microsoft Windows Applications using the text Internet, and/or your job as reference for full credit. Discuss the purpose of the CSIRT and some of the team member roles using the text Internet and/or your job a..

  Employee, which has three private class variables

Create a class Employee, which has three private class variables (Name, Address, PhoneNumber), access methods to get and set each of these properties, and two constructors (one 0-argument constructor and the second setting property values to s..

  Examine the time variable in the offline data

Try controlling for other variables that might affect this relationship.

  Which of the statements about memory allocation is true

Which of the following statements about memory allocation is true?

  Main goals of access control

What are the main goals of access control and what are the best practices recommended to help in achieving them.

  Efficiency related to working with different number bases

Define the Efficiency related to working with different number bases

  The analysis section is reserved for the author knowledge

The following table is a breakdown of the sections of the paper and the expected page count of each section. Note that the minimum page count is 12 double spaced pages. Also, APA style must be followed. Section of Paper Page Count (minimum - maximum)

  Swot analysis results of the new ict service

Compare the SWOT Analysis results of the current ICT service with the SWOT Analysis results of the new ICT service.

  Clash of atoms and reactions generated in brains

Do you think that Hobbes was on to something with his theory? Is there joy or fear out there, or is it all inside of us and how we perceive and react to a situation?

  Analysis of how current and future technology trends

Analyze previous submissions and make changes as necessary to the final paper. Continue development of the project or research with a 3-5 page detailed analysis of how current and future technology trends might impact the project or research performe..

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