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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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