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.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question
 

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:

  1. Circular pools
  2. Elliptical pools
  3. 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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning