Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN VISUAL BASICS (windows form app .NET Framework) Create an application that calculates the occupancy rate for each floor and the overall occupancy rate for

IN VISUAL BASICS (windows form app .NET Framework)

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.

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions