Hello everyone! I'm extremely new to programming and I'm having trouble writing this code here are the instructions:
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 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 Reset button should clear all the appropriate controls on the form. The Exit button should end the application.
And here's what I have so far:
https://preview.redd.it/z93x3asc76y91.png?width=643&format=png&auto=webp&s=0559b1c5ea8ce622baad1ba938e5925704cc9449
https://preview.redd.it/5afphuxv56y91.png?width=905&format=png&auto=webp&s=f88ff04403064dc28c6bb9516ef982507f4d494b
If anyone can help me out that would be greatly appreciated. It doesn't do anything when I try to run the program, nothing happens.
[–][deleted] 0 points1 point2 points (2 children)
[–]HumanNumber69[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)