Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Visual basic hotel occupancy please help thank you! Hotel Occupancy Using Lists or Arrays Programming Challenge 4 in Chapter 5 asked you to create an
Visual basic hotel occupancy please help thank you!
Hotel Occupancy Using Lists or Arrays Programming Challenge 4 in Chapter 5 asked you to create an application that measured room occupancy percentages in a hotel. Briefly, it was described this way: 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 way be calculated by dividing the number of rooms occupied by the number of rooms. The implementation of this application in Chapter 5 was constrained by the inability to use arrays and lists, so we suggested that you automatically increment the combo box index to select floors in strain ascending sequence (1, 2, 3, etc.) For this assignment, modify your previous application so that it uses an array (or a list) to hold the occupancy counts for all of the floors. This change to the program code will allow the user to select floor numbers in the combo box in any order. In Figure 8-50, for example, the user has selected the second and sixth floors, entering occupancy counts for each. In the figure, the user also clicked the Totals button. The ListBox was updated each time the user entered an occupancy count and clicked the Save button. The user may select floors in any order, even replacing a value for a floor that was entered before. Hotel Occupancy Using Lists or Arrays Programming Challenge 4 in Chapter 5 asked you to create an application that measured room occupancy percentages in a hotel. Briefly, it was described this way: 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 way be calculated by dividing the number of rooms occupied by the number of rooms. The implementation of this application in Chapter 5 was constrained by the inability to use arrays and lists, so we suggested that you automatically increment the combo box index to select floors in strain ascending sequence (1, 2, 3, etc.) For this assignment, modify your previous application so that it uses an array (or a list) to hold the occupancy counts for all of the floors. This change to the program code will allow the user to select floor numbers in the combo box in any order. In Figure 8-50, for example, the user has selected the second and sixth floors, entering occupancy counts for each. In the figure, the user also clicked the Totals button. The ListBox was updated each time the user entered an occupancy count and clicked the Save button. The user may select floors in any order, even replacing a value for a floor that was entered beforeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started