146k views
4 votes
Write an application for Lambert’s Vacation Rentals. Use separate ButtonGroups to allow a client to select one of three locations, the number of bedrooms, and whether meals are included in the rental. Assume that the locations are parkside for $600 per week, poolside for $750 per week, or lakeside for $825 per week. Assume that the rentals have one, two, or three bedrooms and that each bedroom over one adds $75 to the base price. Assume that if meals are added, the price is $200 more per rental.

User Cloyd Abad
by
7.7k points

1 Answer

3 votes

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:

  1. Create a ButtonGroup for the three location options - parkside, poolside, and lakeside.
  2. Create a ButtonGroup for the number of bedrooms - one, two, and three. Each additional bedroom adds $75 to the base price.
  3. Create a ButtonGroup for the meal option - meals included or not. If meals are added, the price is $200 more per rental.
  4. 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.
  5. Display the total fee to the client.

User Cavitsinadogru
by
7.7k points