Final answer:
To write an application for Lambert's Vacation Rentals, use separate ButtonGroups to allow a client to select different options such as the location, number of bedrooms, and meals. Calculate the total fee based on the selected options.
Step-by-step explanation:
To write an application for Lambert's Vacation Rentals that allows a client to select different options, you can use separate ButtonGroups for each selection. Here's a step-by-step explanation:
- Create a ButtonGroup for the three location options - parkside, poolside, and lakeside.
- Create a ButtonGroup for the number of bedrooms - one, two, and three. Each additional bedroom adds $75 to the base price.
- Create a ButtonGroup for the meal option - meals included or not. If meals are added, the price is $200 more per rental.
- To calculate the total fee, determine the base price based on the selected location. Then, add $75 for each additional bedroom. Finally, add $200 if the meals option is selected.
- Display the total fee to the client.