Using PYTHON You have been asked by a swimming pool company to create an application to give price quotes for swimming pool installations. This company installs 3 different types of pools: Circular pools Elliptical pools Square-shaped pools The price of each pool is the sum of the cost of the stonework that goes around the perimeter (aka circumference for round / elliptical shapes) of the pool and the installation of the pool (in square footage) plus the state sales tax. The diagram below shows the formulas for: the circumference / perimeter to determine the amount of stonework the area for each shape to determine the pool installation Here is the unit cost: price of stonework around the pool (per foot): $38.50 price of pool installation (per square foot): $53.80 tax rate: 6.35% Your main program will call a function getPoolType which will create a menu-driven prompt to ask the user the type of pool being considered. The response will be returned to the main function. Depending on the pool type specified, the main function will then call the appropriate function to ask for the respective dimensions and calculate the cost. You will implement a different function to calculate the cost for each pool shape. The output of your application is to provide the user with the price quote. You can decide whether you want to output in the main function or in each pool shape cost calculating function. Be sure to test all options. Your output should be presentable, citing input dimension values for the calculation, and your output should be formatted to dollar format.
Using PYTHON
You have been asked by a swimming pool company to create an application to give price quotes for swimming pool installations. This company installs 3 different types of pools:
- Circular pools
- Elliptical pools
- Square-shaped pools
The price of each pool is the sum of the cost of the stonework that goes around the perimeter (aka circumference for round / elliptical shapes) of the pool and the installation of the pool (in square footage) plus the state sales tax.
The diagram below shows the formulas for:
-
the circumference / perimeter to determine the amount of stonework
-
the area for each shape to determine the pool installation
Here is the unit cost:
-
price of stonework around the pool (per foot): $38.50
-
price of pool installation (per square foot): $53.80
-
tax rate: 6.35%
Your main program will call a function getPoolType which will create a menu-driven prompt to ask the user the type of pool being considered. The response will be returned to the main function. Depending on the pool type specified, the main function will then call the appropriate function to ask for the respective dimensions and calculate the cost. You will implement a different function to calculate the cost for each pool shape.
The output of your application is to provide the user with the price quote. You can decide whether you want to output in the main function or in each pool shape cost calculating function. Be sure to test all options. Your output should be presentable, citing input dimension values for the calculation, and your output should be formatted to dollar format.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images