Reference no: EM131308959
The Paris Hotels Company needs a computer program to track their hotel occupancy for the hotels in their chain. Write a Java program that calculates the occupancy rate for each floor of a hotel.
A hotel's occupancy rate is calculated as follows:
Occupancy rate = number of rooms occupied / number of rooms
The program should start by asking for the number of floors int 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 those rooms that are occupied.
The occupancy rate should be displayed for each floor.
After all the iterations, the program should display the number of rooms the hotel has, the number of those rooms that are occupied, the number that are vacant, and the occupancy rate for the hotel.
Input Validation: Do not accept a value less than one for the number of floors. Do not accept a number less than 10 for the number of rooms on a floor.
Requirements:
Name your program Hotel.java and submit it on the Moodle website.
Include comments defining the purpose of the code.
Include a comment giving your name.
Stimulate the economy by increasing aggregate output
: Explain why expansionary fiscal policy and expansionary monetary policy have opposite effects on the interest rate despite having the same goal of increasing aggregate output. Illustrate your answer with graphs of the money market.
|
Binomial model for pricing american put options
: Consider a one-period binomial model for pricing American put options with h = 1, σ = 0.3 where S = 90. Use the fact that option prices are nonnegative and the put-call parity to show that there is no early exercise if r = 0 and δ = 0.08 for any give..
|
High recruiting and selecting cost
: Your organization is experiencing high employee turnover, high recruiting and selecting cost and high anxiety among new employees. As the Human Resource Manager, advise the CEO as to what you would do to remedy this situation.
|
Which of given information has to be documented in report
: Determine whether information has to be documented.- Imagine that you're writing a case study report about the bookseller Barnes and Noble. Which of the following information has to be documented in a report?
|
Write a program to track their hotel occupancy for hotels
: The Paris Hotels Company needs a computer program to track their hotel occupancy for the hotels in their chain. Write a Java program that calculates the occupancy rate for each floor of a hotel.
|
Find an article related to marketing
: Find an article related to marketing and write a page about it.You may use foxnews.com because it has a business page. However, you can get an article from any website or magazine. You can pick a brand or product and do a google search as well.
|
Harming health care physicians
: According to our text studies show that defensive medicine seems to be harming health care physicians are acting out of fear for malpractice suits and their actions are not beneficial to the treatment of the patient it is increasing health care co..
|
Cash flows over the four-year life of the investment
: An investment has an installed cost of $571,382. The cash flows over the four-year life of the investment are projected to be $200,584, $244,318, $192,674, and $160,313. If the discount rate is zero, what is the NPV? At what discount rate is the NPV ..
|
Find excerpts on the humane society website
: Imagine that you're writing a report about pet overpopulation. Find excerpts on the Humane Society website and want to incorporate the information into your report.
|