Write a program to track their hotel occupancy for hotels

Assignment Help JAVA Programming
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.

Reference no: EM131308959

Questions Cloud

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.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a recursive method that returns xn

implement a recursive method that returns xn - Suppose we want methods that compute the value of a double precision number raised to an integer power.

  Create screen with one spinner containing at least two city

Create a screen with one spinner containing at least two cities. On selection of the city in the spinner, make a service call to the weather API that returns the results in XML format.

  Describe the behavior of the java class

The authors initially describe the behavior of the java.util.Hashmap class. As they describe it, the Java implementation of a Hash Map consists of a table (bucket array) of entries. Each entry consists of a K, V pair with the addition of a next re..

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Write a code that tests for a match.

Comments in the code tell you where to write your statements. You can use the Mail Order Program in this chapter guide.

  Write a recursive method that takes two non-negative integer

Write a recursive method that takes two non-negative integers m and n as parameters and returns the product.

  Implement a java program that reads phone numbers

Implement a Java program that reads phone numbers, and for each phone number, it displays the phone number's three components - country code, area code, and local number.

  Find factors of a given number

Write a java program to find factors of a given number.

  Java code using jframe

Write a Java code using JFrame. This code needs to manipulate 4 shapes(2 rectangles and 2 squares) in a 400x400 JFrame. This needs to manipulate the shapes in 3 different ways, using 3 different methods. One for translating a shape, one for proportio..

  Describe the graphical coordinate system in java

Describe the graphical coordinate system in Java. Where is the origin? What units apply to the x,y coordinates

  Part 1product maintenanceyoull create a series of pages

part 1product maintenanceyoull create a series of pages that allow you to add update or delete a product thats

  Write a method called add uneven arrays

Write a method called addUnevenArrays that takes two arrays, a and b, and returns a new array, c, with alength that is the maximum of the lengths of a and b. Each c[i] is the sum of the corresponding elementsof a and b if both elements exist.

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