Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

show labels please!! The ElGrande Hotel has 8 floors and 30 rooms on each floor. Create an application that calculates the occupancy rate for each

show labels please!!

The ElGrande Hotel has 8 floors and 30 rooms on each floor. Create an application that calculates the occupancy rate for each floor, and the overall occupancy rate for the hotel. The occupancy rate is the percentage of rooms occupied, and may be calculated by dividing the number of rooms occupied by the number of rooms. For example, if 18 rooms on the first floor are occupied, the occupancy rate is as follows:

18 / 30 = 0.6 or 60%

On startup, the applications form should appear similar to the one shown below. Each time the user enters the occupancy for a single floor and clicks the Save button, the floor number in the ComboBox should increment automatically (just add 1 to its SelectedIndex property), and a new line should appear in the ListBox with the percentage occupancy. Also, the contents of the TextBox at the top of the form should clear automatically when the user clicks the Save button, so the user does not accidentally enter the same data twice in a row. The Restart button should clear all the appropriate controls on the form. The Exit button should end the application.

image text in transcribed
visual studio!
private void!
show label
oetueaency natncalealatiaf 1 Bhet. ex+rallaesas = in betie hanic) int reanoctupleily metire: neetnt thases ew. nanadecupsed. cumebers 1tean kactil; Histhesh, there . Aet ("); 3 tatileeroronaded ctawr[3]

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

Students also viewed these Databases questions