Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, i need help with this assignment. the program must be in C Write a program that calculates the occupancy rate and profitability (on a

Hello, i need help with this assignment. the program must be in C
Write a program that calculates the occupancy rate and profitability (on a particular day) of the 120 suites (20 per floor) located on the top Noors 15-story luxury hotel. These are floors 10-12 and 14 - 16 because, like many hotels, there is no 13th floor. Solve the problem by using a single loop that loops once for each floor between 10 and 16 and, on each iteration, asks the user to input the number of suites occupied on that floor. After all the iterations, the program should display how many suites the hotel has, how many of them are occupied , and what percentage of them are occupied . In addition , your program must calculate and display the profit for the day for the hotel considering the following:
Cost of running the hotel is 20.00 per suite per day Suites in floors 10-12 rent for $200.00 per day
Suites in floors rent for 250,00 per day 14 - 16 image text in transcribed
Hotel Suites Occupancy Write a program that calculates the occupancy rate and profitability (on a particular day) of the 120 suites (20 per floor) located on the top 6 floors of a 15-story luxury hotel. These are floors 10-12 and 14-16 because, like many hotels, there is no 13th floor. Solve the problem by using a single loop that loops once for each floor between 10 and 16 and, on each iteration, asks the user to input the number of suites occupied on that floor. After all the iterations, the program should display how many suites the hotel has, how many of them are occupied, and what percentage of them are occupied. In addition, your program must calculate and display the profit for the day for the hotel considering the following. Cost of running the hotel is $20.00 per suite per day. Suites in floors 10-12 rent for $200.00 per day. Suites in floors 14-16 rent for $250.00 per day. Input Validation: Do not accept a value less than 0 or more than 20 for the number of suites occupied on a given floor. Submission guidelines: Send your Assignment2.c file as attachments to my email, with the subject Assignment 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions