I have to determine the best way to code my VB program. I am creating a Apartment Property Mgt application. Where different selections by user feed into rent and deposit calculations. There are 3 different properties of which two have a premium tied to them which is a flat percentage of rent and all options selected. For options some are standard and part of rent but other options increase the rent. There are options such as view, and # of bathrooms, Fireplace, non smoking, garage, extra parking space, extra storage, pets and an increase in deposit if you have bad credit. I assume I should create contants for each of the options to store the value of the option
I know that I need to create code that will consider all options selected and then calculate both a rent and deposit
I have used a drop down list to select the property
I am using radio buttons for the bedrooms one, one plus den, or two bedroom.
he view (such as courtyard, pool, mountain view)
Bathrooms one, one and one half or two.
Pet selection DOG, CAT or NONE
In addition, I have some check boxes for extra's (fireplace, non smoking, extra parking, garage, storage, bad credit)
There is a default Base Rent value of 500.00 and then after all options are noted there is a calculate button they click and I return rent to a label and deposit to a second label.
I am not sure how best to create the code to produce the result I want without creating redundant code.I don't want to list in the code listing all the different buttons selected in order to calculate however the selection of the buttons does determine if the value of the rent is increased Any suggestions