Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Professor Specioso Computer Studies Hotel Occupancy CSC 162 Create an application that calculates the occupancy rate for each floor and the overall occupancy rate for

image text in transcribed
Professor Specioso Computer Studies Hotel Occupancy CSC 162 Create an application that calculates the occupancy rate for each floor and the overall occupancy rate for a hotel. The highest floor the hotel has it floor number 16, but there is only 15 floors, REMEMBER a hotels do not have a 13th floor. Each floor has 30 rooms. The occupancy rate is calculated by dividing the number of rooms occupied by the number of rooms. For example if 18 rooms on a floor are occupied, the occupancy rate is as follows: 18/30,6 or 60% When the user clicks the Complete Report button, a loop execute once for each floor. For each iteration of the loop it should display an input box asking the user for the number of rooms occupied on that floor. As the user enters a value for each floor, the loop should calculate the occupancy rate for that floor and display the information for that floor in the list box. When the number of occupied rooms has been entered for all the floors, the application should display the total number of rooms occupied and the overall occupancy rate for the hotel. (The hotel has a total of 450 rooms.) Provide a clear button that should clear all the appropriate controls on the form. The Exit button should end the application. The exit and the clear button should ask the user to confirm that they wish to exit the program or clear the form.IN ul5uA. BAsic fRDGinnnu4

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_2

Step: 3

blur-text-image_3

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago