You have been recruited to work as a software developer by Gupta Inc, a company that operates in the real estate business mainly focusing on property rental. They would like you to develop an application that uses a graphical user interface to capture the full name, cell phone number and property details of any customer who wishes to rent any of their properties, and the application will calculate and display their monthly rental bill. Property details include the location (low density or high density), the type of property (House, Townhouse or Flat/Apartment) and the number of bedrooms that they want the property to have. The monthly rental prices for Gupta Inc properties are shown below:
All properties other than flats and apartment pay an additional fee for water 1% of their rental amount as part of their rent. For example, a customer wishing to stay in a three-bedroomed house located in a low density area will have to pay a fixed amount of R10 000, R6 000 for the three bedrooms and R160 for water, 1% of R16 000. Therefore, their monthly rental bill will be R16 160. For example, a customer wishing to stay in a two-bedroomed townhouse located in a high density area will have to pay a fixed amount of R2 000, R2 000 for the two bedrooms and R400 for water 10%, of R4 000. Therefore, their monthly rental bill will be R4 040. For example, a customer wishing to stay in a one-bedroomed flat or apartment located in a low density area will have to pay a fixed amount of R5 000 and R2 000 for the bedroom. Therefore, their monthly rental bill will be R7 000. The rental bill breakdown must be displayed on the application using a list box. Below is an example of a screenshot of a similar system: Source: Makwindi (2017) |
1.1Design the interface to capture all the details required using the best input tools available.
(15 marks)
1.2With reference to the scenario above, write a code for the following functions and add comments to your code:
a.The button to display all the information that has to be captured in the list box.
(14 marks)
b.Add a function or sub-procedure to warn the client if some fields have not been entered, before displaying the contents.
(5 marks)
c.Add a button that can be used to close the application.
(1 mark)
d.Illustrate in your code how to handle exceptions such as when a user enters letters instead of numbers for the number of bedrooms required.
WhatsApp us