( C++ ) Occupancy rate is often considered to be one of the top three most useful metrics for hotel owners. Generally speaking, those working in the hotel industry should be aiming for a high occupancy rate, because this indicates that space is being used efficiently.
The occupancy rate of a hotel is expressed as a percentage. So, for example, if a hotel has 100 rooms available to be sold and 60 of those rooms are occupied, the occupancy rate would be 60 percent.
How to Calculate Occupancy Rate
The occupancy rate can be calculated with the following formula:
Occupancy Rate = Number of Occupied Rooms / Total Number of Available Rooms
Example: If your hotel has 220 rooms and 210 of the rooms are occupied:
210 / 220 = 0.95 = 95 percent occupancy rate.
Program Description
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. Use the following message for the prompt: "How many floors does the hotel have? ".
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 are occupied. Use the following messages for the prompts:
"\nEnter the number of rooms on floor <floor number>: " and "\nHow many rooms are occupied on floor <floor number>? ".
Note: <floor number> should be substituted whith the floor number.
After all the iterations complete, the program should display a report similar to the following:
Total number of rooms: 330
Occupied rooms: 264
Unoccupied rooms: 66
Occupancy Rate: 0.80
Note: A new line should be displayed before the report is displayed and the occupancy rate should be displayed with 2 digits after the decimal.
Hint: Your program should use 2 accumulators to keep track of the total number of rooms in the hotel and how many rooms are occupied. Don't forget to initialize these variables to zero.
Input Validation
Loops should be used to continue prompting the user for input, until it is valid. If invalid input is entered, an error message should be displayed and the input should be read again. Use the error messages below.
Error messages:
Note: <max rooms> should be replaced with the maximum number of rooms on the respective floor.
Reminder
Don't forget that to avoid integer division, one of the operands should be a floating point number. One way to avoid this is to use the static_cast operator to convert one of the operands to a double before dividing. Keep this in mind when you calculate the occupancy rate.
In: Computer Science
*PLEASE ANSWER LETTERS A-F THOROUGHLY*
The Twelve-stars Amusement Park
The Twelve-stars traveling amusement park has recently set up operation in the East Bay. The arrival rate of patrons at the park is estimated as 35 per hour. There is one admissions gate, staffed by a single worker. Admissions can be conducted at an estimated rate of 40 per hour. 40% of patrons go directly to the Ferris wheel, while 30% go to the rollercoaster. The remaining 30% go to the zombie house. The service rate of the Ferris wheel is 18 patrons per hour, while the service rate of the roller coaster is 15 patrons per hour. The service rate of the zombie house is 16 patrons per hour. All of the patrons leaving the Ferris wheel go to the house of mirrors. In addition, 40% of patrons leaving the roller coaster go to the house of mirrors. The house of mirrors serves patrons one at a time at a rate of 25 per hour. All patrons leaving the house of mirrors as well as remaining patrons leaving the rollercoaster all go to the exit gate. In addition, all patrons leaving the zombie house go directly to the exit gate. There is one worker at the exit gate, who can process exiting patrons at a rate of 38 per hour. It is desired to determine for this amusement park, the expected number of patrons waiting at the admission gate, exit gate, and at each ride. It is also desired to determine the expected time patrons spend waiting at each of these locations. If an additional worker was available, at which "station" (i.e., entry gate, exit gate, or ride) should this worker be placed?
The dept. of public safety for Alameda County would like to know what the average number of patrons is expected to be in the park over the course of a day in order to determine whether this meets with safety code and fire Marshall regulations. Current regulations do not allow for more than 40 patrons in the park at any one time. What would you report for this? (i.e., is the requirement met?) (Note that you can treat each station as a single server system!!!!!) Make sure to show your calculations and report your results regarding park operations.
A) Write a short summary of the case, including the purpose of your analysis. B) Show and explain the model you used to evaluate the amusement park system.
C) Show any calculations you used to obtain your results. (Hint: for each gate and ride you will need l, lq, and wq.)
D) Display a summary of results.
E) Answer any questions posed with the case in addition to the summary of results. (i.e., at what ride would you place an additional worker, and are park limitations on patrons being met?)
F) Write a brief conclusion and recommendations. A few sentences will suffice.
In: Operations Management
13-Financial leverage effects
The Neal Company wants to estimate next year's return on equity (ROE) under different financial leverage ratios. Neal's total capital is $16 million, it currently uses only common equity, it has no future plans to use preferred stock in its capital structure, and its federal-plus-state tax rate is 25%. The CFO has estimated next year's EBIT for three possible states of the world: $4.8 million with a 0.2 probability, $3.1 million with a 0.5 probability, and $300,000 with a 0.3 probability. Calculate Neal's expected ROE, standard deviation, and coefficient of variation for each of the following debt-to-capital ratios. Do not round intermediate calculations. Round your answers to two decimal places.
Debt/Capital ratio is 0.
| RÔE: | ___________ % |
| σ: | ___________ % |
| CV: | ___________ |
Debt/Capital ratio is 10%, interest rate is 9%.
| RÔE: | __________ % |
| σ: | __________ % |
| CV: | ___________ |
Debt/Capital ratio is 50%, interest rate is 11%.
| RÔE: | ________ % |
| σ: | ________ % |
| CV: | _________ |
Debt/Capital ratio is 60%, interest rate is 14%.
| RÔE: | __________ % |
| σ: | __________ % |
| CV: | ___________ |
In: Accounting
The Neal Company wants to estimate next year's return on equity (ROE) under different financial leverage ratios. Neal's total capital is $19 million, it currently uses only common equity, it has no future plans to use preferred stock in its capital structure, and its federal-plus-state tax rate is 40%. The CFO has estimated next year's EBIT for three possible states of the world: $4.2 million with a 0.2 probability, $2 million with a 0.5 probability, and $0.5 million with a 0.3 probability. Calculate Neal's expected ROE, standard deviation, and coefficient of variation for each of the following debt-to-capital ratios. Do not round intermediate calculations. Round your answers to two decimal places at the end of the calculations.
Debt/Capital ratio is 0.
| RÔE = | % |
| σ = | % |
| CV = |
Debt/Capital ratio is 10%, interest rate is 9%.
| RÔE = | % |
| σ = | % |
| CV = |
Debt/Capital ratio is 50%, interest rate is 11%.
| RÔE = | % |
| σ = | % |
| CV = |
Debt/Capital ratio is 60%, interest rate is 14%.
| RÔE = | % |
| σ = | % |
| CV = |
In: Finance
A global equity manager is assigned to select stocks from a universe of large stocks throughout the world. The manager will be evaluated by comparing her returns to the return on the MSCI World Market Portfolio, but she is free to hold stocks from various countries in whatever proportions she finds desirable. Results for a given month are contained in the following table:
| Country | Weight In MSCI Index |
Manager’s Weight |
Manager’s Return in Country |
Return of Stock Index for That Country |
|||||||||
| U.K. | 0.21 | 0.42 | 21 | % | 12 | % | |||||||
| Japan | 0.34 | 0.2 | 14 | 14 | |||||||||
| U.S. | 0.39 | 0.3 | 10 | 12 | |||||||||
| Germany | 0.06 | 0.08 | 5 | 12 | |||||||||
a. Calculate the total value added of all the manager’s decisions this period. (Do not round intermediate calculations. Round your answer to 2 decimal places. Negative amount should be indicated by a minus sign.)
b. Calculate the value added (or subtracted) by
her country allocation decisions. (Do not round
intermediate calculations. Round your answer to 2
decimal places. Negative amount should be indicated by a minus
sign.)
In: Finance
FINANCIAL LEVERAGE EFFECTS The Neal Company wants to estimate next year's return on equity (ROE) under different financial leverage ratios. Neal's total capital is $19 million, it currently uses only common equity, it has no future plans to use preferred stock in its capital structure, and its federal-plus-state tax rate is 40%. The CFO has estimated next year's EBIT for three possible states of the world: $4.6 million with a 0.2 probability, $2.7 million with a 0.5 probability, and $0.9 million with a 0.3 probability. Calculate Neal's expected ROE, standard deviation, and coefficient of variation for each of the following debt-to-capital ratios. Do not round intermediate calculations. Round your answers to two decimal places at the end of the calculations.
Debt/Capital ratio is 0.
RÔE = %
σ = %
CV =
Debt/Capital ratio is 10%, interest rate is 9%.
RÔE = %
σ = %
CV =
Debt/Capital ratio is 50%, interest rate is 11%.
RÔE = %
σ = %
CV =
Debt/Capital ratio is 60%, interest rate is 14%.
RÔE = %
σ = %
CV =
In: Finance
FINANCIAL LEVERAGE EFFECTS
The Neal Company wants to estimate next year's return on equity (ROE) under different financial leverage ratios. Neal's total capital is $17 million, it currently uses only common equity, it has no future plans to use preferred stock in its capital structure, and its federal-plus-state tax rate is 40%. The CFO has estimated next year's EBIT for three possible states of the world: $4.7 million with a 0.2 probability, $2.8 million with a 0.5 probability, and $0.5 million with a 0.3 probability. Calculate Neal's expected ROE, standard deviation, and coefficient of variation for each of the following debt-to-capital ratios. Do not round intermediate calculations. Round your answers to two decimal places at the end of the calculations.
Debt/Capital ratio is 0.
| RÔE = | % |
| σ = | % |
| CV = |
Debt/Capital ratio is 10%, interest rate is 9%.
| RÔE = | % |
| σ = | % |
| CV = |
Debt/Capital ratio is 50%, interest rate is 11%.
| RÔE = | % |
| σ = | % |
| CV = |
Debt/Capital ratio is 60%, interest rate is 14%.
| RÔE = | % |
| σ = | % |
| CV = |
In: Finance
|
GE |
Bosch |
LG |
|
|
Performance |
7 |
8 |
8 |
|
Energy efficiency |
6 |
7 |
8 |
|
Durability |
8 |
8 |
6 |
|
Brand |
9 |
7 |
8 |
|
Cost |
$2,300 |
$2,500 |
$2,300 |
Which refrigerator would you choose and why?
Lease option: $2,000 security deposit, $500 monthly payment for 48 months. Expected end of lease charges are $600.
Purchase option: $4,000 down payment, $600 monthly payment for 48 months. At the end the car is estimated to have resale value of $8,000.
Do the proper analyses and decide which option is better.
In: Finance
One of the scenarios below is a Binomial Experiment and the other is not. For each scenario, state whether or not it is a Binomial Experiment. If it is, give the values of n and p and state all the possible values of X. If it is not, say why (which of the four conditions are not met?).
(a) In the 2008 presidential election, 54% of the voters voted for President Obama. Suppose 5 people who voted in the 2008 election are randomly selcted. The random variable represents the number of people in the random sample who voted for President Obama in the 2008 election.
(b) Suppose that the probability that a randomly selected person who has recently married for the first time will be divorced within 5 years is 0.2, and that the probability that a randomly selected person who has recently married for the second time is 0.3. We take a random sample of 20 people who recently married (10 for the first time and 10 for the second). The sample is chosen so that no one in the sample is married to anyone else in the sample. The
random variable represents the number of people in the sample of 20 who will be divorced within 5 years.
In: Statistics and Probability
| Individual | State 1 Return (p=0.3) | State 2 Return (p=0.5) | State 3 Return (p=0.2) |
| A | 5% | 11% | 9% |
| B | 6% | 8% | -3% |
Given the above information on two investments A and B, calculate the following statistics:
1. Calculate the Expected Return for A. Give your answer in decimal form to 3 decimals places. For example, 9% is 0.09.
2. Calculate the standard deviation for A. Give your answer in decimal form to 3 decimals places. For example, 9% is 0.09.
3. Calculate the Expected Return for B. Give your answer in decimal form to 3 decimals places. For example, 9% is 0.09.
4. Calculate the standard deviation for B. Give your answer in decimal form to 3 decimals places. For example, 9% is 0.09.
5. Assume that the expected return for A is 10% and the expected return for B is 5.5%. Calculate the expected return on a portfolio consisting of 60% A and 40% B. Give your answer in decimal form to 3 decimals places. For example, 9% is 0.09.
In: Finance