Explanation:
Inputs:
- Extension Size (in sq meters): User enters the size of the rear extension.
- Finish Type: User selects the type of finish for the extension (Standard, Premium, or Luxury).
Calculations:
- The
calculateCost()
function multiplies the extension size by a cost per square meter depending on the selected finish type.
- The
Finish Types and Costs:
- Standard Finish: £1200 per square meter
- Premium Finish: £1600 per square meter
- Luxury Finish: £2200 per square meter
Output:
- Displays the estimated cost based on the input values.
Changes from Loft Conversion Estimator:
- This version estimates the cost of a rear extension based on finish type and size.
- It uses slightly different cost values per square meter based on the type of finish the user selects.