( 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
Illustration Capsule 5.1 discusses Amazon’s low-cost position in the electronic commerce industry. Based on information provided in the capsule, explain how Amazon has built its low-cost advantage in the industry and why a low-cost provider strategy is well suited to the industry.
MBA class. Business Strategy and policy class MB 695.
Book: Crafting and Executive Strategy: The Quest for Competitive advantage: conept and cases, 21st edition by Arthur Thompson
In: Accounting
Write the pseudocode that prompts the user for their first and last name. Display the first initial of their first name and their last name to the user.
Ask the user to input a phone number.
The program checks which part of Colorado a phone number is from using the values below.
If the second digit of the phone number is one of the below digits, print the phone number and which part of Colorado it is from. If none of the digits are entered, display the phone number and state it is not in Colorado.
If the number is in Estes Park, the user should see: phone number + “is in Estes Park, it is time to go pick up your new Corgi puppy!”
If the second digit of a phone number is:
0 = Boulder
1 = Colorado Springs
2 = Denver
7 = Estes Park
In: Computer Science
Park Corporation is planning to issue bonds with a face value of $630,000 and a coupon rate of 7.5 percent. The bonds mature in 4 years and pay interest semiannually every June 30 and December 31. All of the bonds were sold on January 1 of this year. Park uses the effective-interest amortization method and also uses a discount account. Assume an annual market rate of interest of 8.5 percent. (FV of $1, PV of $1, FVA of $1, and PVA of $1) (Use the appropriate factor(s) from the tables provided. Round your final answer to whole dollars.)
3. What bond payable amount will Park report on
its June 30 balance sheet? (Enter all amounts with a
positive sign.)
In: Accounting
A firm has won the bid to complete a renovation of a hotel and
you are to manage the labor to complete the job. The firm is
assigning two workers named Ben and Jerry. The floors and walls
must be redone and there are 60 hotel rooms to complete. The firm
is not receiving payment by the hour but by the job. The firm's
goal is to minimize time spent on this project. The table below
shows the time it takes to complete a single room which has two
aspects of the job.
Floors Walls
Ben 3 hours 4 hours
Jerry 2 hours 3 hours
How many hours would it take to complete the entire hotel if each
worker specialized in a task in which they had the comparative
advantage? Do not let time pass with idle workers.
In: Economics
In c++, please make it short and simple
A hotel chain needs a program which will produce statistics for the hotels it owns.
Write a program which displays the occupancy rate and other statistics for any of the chain’s large hotels (all are 20 floors with 16 rooms each floor).
In main:
-declare a 20 X 16 array of “int” named hotel to represent a hotel’s 20 floors and 16 rooms per floor.
Then in main, repeatedly:
-call a function which fills the hotel array with 1s and 0s, where 1 indicates an occupied room and 0 indicates an unoccupied room. Call a second function to validate that each entry is either 1 or 0 by having the second function access the original entry using a pointer in its parameter list.
-pass the hotel array to a third function which dynamically allocates a new size 20 “int” array with each element representing a floor of the hotel and the floor’s number of occupied rooms; place the number of occupied rooms of each floor into the new array and return it to main.
-display the floor number** and number of occupied rooms on each floor by incrementing the address of the new array.
-also calculate and display the hotel’s overall occupancy rate to 1 decimal (total rooms occupied per total rooms), and the floor number** and number of occupied rooms of the floor with the highest occupancy.
-process another hotel (unknown number of hotels in chain).
**NOTE: hotels do not have a floor numbered 13 due to guests’ superstitions.
To create your screen print, temporarily set the floors and rooms to 3 and 5 respectively to reduce data entry, and enter:
Floor #1: occupied, occupied, unoccupied, occupied, unoccupied
Floor #2: occupied, unoccupied, occupied, occupied, occupied
Floor #3: occupied, unoccupied, unoccupied, unoccupied, occupied
In: Computer Science
PRACTICAL QUESTION
Tiger Construction Ltd signs a contract on 1 May 2018 to build a theme park. The construction is scheduled to commence on 1 July 2018 and the estimated date of completion is 30 June 2021. The total contract price is $5m and the cost of the park is initially estimated at $4.5m. The following data relates to the construction period:
|
For the year ended 30 June |
|||
|
2019 |
2020 |
2021 |
|
|
$ |
$ |
$ |
|
|
Costs to date |
1,700,000 |
3,000,000 |
4,800,000 |
|
Estimated costs to complete |
2,800,000 |
1,700,000 |
- |
|
Progress billings to date |
1,400,000 |
2,600,000 |
5,000,000 |
|
Cash received to date |
1,200,000 |
2,200,000 |
5,000,000 |
Assume that cost (an input measure) is used as the basis for assessing progress on the construction contract.
Required
Determine the percentage of completion for 2019, 2020 and 2021.
|
2019 |
2020 |
2021 |
|
|
$ |
$ |
$ |
|
|
Costs to date (A) |
|||
|
Estimated costs to complete (B) |
|||
|
Estimated total cost (A+B=C) |
|||
|
Percent of completion (POC=A/C) |
Calculate revenue and gross profit for 2019, 2020 and 2021.
|
2019 |
2020 |
2021 |
|||||
|
$ |
$ |
$ |
|||||
|
Contract Price |
|||||||
|
Contact Price x POC |
|||||||
|
Less Revenue recognised in previous years |
|||||||
|
= Revenue recognised for the year |
|||||||
|
Less Costs for the year |
|||||||
|
= Gross profit for the year |
|||||||
Using the percentage of completion method, provide the journal entries for 2019, 2020 and 2021.
|
2019 $m |
2020 $m |
2021 $m |
|||
|
(i) |
To record costs incurred: |
||||
|
(ii) |
To record billings to customers: |
||||
|
(iii) |
To record cash collections: |
||||
|
(iv) |
To record periodic income recognised: |
||||
In: Accounting
PRACTICAL QUESTION
Tiger Construction Ltd signs a contract on 1 May 2018 to build a theme park. The construction is scheduled to commence on 1 July 2018 and the estimated date of completion is 30 June 2021. The total contract price is $5m and the cost of the park is initially estimated at $4.5m. The following data relates to the construction period:
|
For the year ended 30 June |
|||
|
2019 |
2020 |
2021 |
|
|
$ |
$ |
$ |
|
|
Costs to date |
1,700,000 |
3,000,000 |
4,800,000 |
|
Estimated costs to complete |
2,800,000 |
1,700,000 |
- |
|
Progress billings to date |
1,400,000 |
2,600,000 |
5,000,000 |
|
Cash received to date |
1,200,000 |
2,200,000 |
5,000,000 |
Assume that cost (an input measure) is used as the basis for assessing progress on the construction contract.
Required
Determine the percentage of completion for 2019, 2020 and 2021.
|
2019 |
2020 |
2021 |
|
|
$ |
$ |
$ |
|
|
Costs to date (A) |
|||
|
Estimated costs to complete (B) |
|||
|
Estimated total cost (A+B=C) |
|||
|
Percent of completion (POC=A/C) |
Calculate revenue and gross profit for 2019, 2020 and 2021.
|
2019 |
2020 |
2021 |
|||||
|
$ |
$ |
$ |
|||||
|
Contract Price |
|||||||
|
Contact Price x POC |
|||||||
|
LessRevenue recognised in previous years |
|||||||
|
= Revenue recognised for the year |
|||||||
|
Less Costs for the year |
|||||||
|
= Gross profit for the year |
|||||||
Using the percentage of completion method, provide the journal entries for 2019, 2020 and 2021.
|
2019 $m |
2020 $m |
2021 $m |
|||
|
(i) |
To record costs incurred: |
||||
|
(ii) |
To record billings to customers: |
||||
|
(iii) |
To record cash collections: |
||||
|
(iv) |
To record periodic income recognised: |
||||
In: Accounting
PRACTICAL QUESTION
Tiger Construction Ltd signs a contract on 1 May 2018 to build a theme park. The construction is scheduled to commence on 1 July 2018 and the estimated date of completion is 30 June 2021. The total contract price is $5m and the cost of the park is initially estimated at $4.5m. The following data relates to the construction period:
|
For the year ended 30 June |
|||
|
2019 |
2020 |
2021 |
|
|
$ |
$ |
$ |
|
|
Costs to date |
1,700,000 |
3,000,000 |
4,800,000 |
|
Estimated costs to complete |
2,800,000 |
1,700,000 |
- |
|
Progress billings to date |
1,400,000 |
2,600,000 |
5,000,000 |
|
Cash received to date |
1,200,000 |
2,200,000 |
5,000,000 |
Assume that cost (an input measure) is used as the basis for assessing progress on the construction contract.
Required
Determine the percentage of completion for 2019, 2020 and 2021.
|
2019 |
2020 |
2021 |
|
|
$ |
$ |
$ |
|
|
Costs to date (A) |
|||
|
Estimated costs to complete (B) |
|||
|
Estimated total cost (A+B=C) |
|||
|
Percent of completion (POC=A/C) |
Calculate revenue and gross profit for 2019, 2020 and 2021.
|
2019 |
2020 |
2021 |
|||||
|
$ |
$ |
$ |
|||||
|
Contract Price |
|||||||
|
Contact Price x POC |
|||||||
|
LessRevenue recognised in previous years |
|||||||
|
= Revenue recognised for the year |
|||||||
|
Less Costs for the year |
|||||||
|
= Gross profit for the year |
|||||||
Using the percentage of completion method, provide the journal entries for 2019, 2020 and 2021.
|
2019 $m |
2020 $m |
2021 $m |
|||
|
(i) |
To record costs incurred: |
||||
|
(ii) |
To record billings to customers: |
||||
|
(iii) |
To record cash collections: |
||||
|
(iv) |
To record periodic income recognised: |
||||
In: Accounting