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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education