This week you will build the program presented in week 4 . You will design the interface and create senarios for this problem.
It is clear that our main menu should have a rental menu. This will allow the program user to add, delete or edit a rental. The type of the rental can be determined either in the menu or in the dialog used to retrieve the rental information. I tend to lean toward one dialog with parts that can be enabled or disabled. There are fewer things for the user to understand and if the type of rental changes during the process, it is easier if it can be done in one dialog.
Another problem with the rental dialog no matter which type, is the retrieval of the renters Id number. Some renters will be new, most will not remember their Id or remember it incorrectly. Even if the renter remembers their Id number correctly, you will want to check their information to make sure it is current.
What other windows will you need, and what will appear in the main window? You will want to create the listing of all rentals by a customer and a list of the bill. If a customer doesn't know their id, you may want to retrieve all customers with the same name. You can identify the correct customer from their address. You may also want a list of non rented rooms. This is not a true reservation program since it only will record current occupants, so no calandar of room openings is needed.
With all this in mind it is time to create the detailed version of the interface .
This week you will build the program presented in week 4 .
Click here to get the complete code for this first interface.