Write a program to keep track of condo and dock rentals at a resort. Condos are rented by the dau for varying amounts and boat mooring is $0.50 per day-foot (multply 0.50 by the number of days by the length of the boat). You must keep track of customer information and rental information in a database.
The client has certain requirements. First all customer information must be checked before any rental is completed. In our simplified problem, you will only need to have the customers name (last and first), address (street, city, state and zip code), and phone number. A customer idenification number will be assigned by the database, but should appear in the customer window and in the rental window. If a customer calls and knows that number, you should be able to retrieve and confirm the information from the data base. Most customers will not recall that number, so you should be able to get a list of all customers with the same last name and zip code from the database. From this list, if the customer is listed you should be able to get the customers number.
Before processing a rental, the user information must be confirmed. The user should be able to enter more than one rental from a customer without having to reconfirm the user information. Cost totals for both the individual rental and the customers entire bill should appear someplace on the screen. Rentals for each user should be listed in the window with the customer information, so you can click on any rental and alter the information. Resevations can only be altered after the customer information is confirmed. The number of a given reservation (created by the database) should appear in the rental window. If the customer remembers the number, you should be able to retrieve it without going to the customer window. You will not allow it to be altered unless all customer information is confirmed.