Help me on below python program.

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
Help me on below python program.
tire volume.py
The size of a car tire in the United States is represented with three numbers like this: 205/60R15. The first number is the width of the tire in millimeters.
The second number is the aspect ratio The third number is the diameter in inches of the wheel that the tire fits. The volume of space inside a tire can be
approximated with this formula:
yawa (wa + 2540d)/10.000.000.000
v is the volume in liters
is the constant Pl, which is the ratio of the circumference of a circle divided by its diameter (use math pi)
w is the width of the tire in millimeters
a is the aspect ratio of the tire, and
dis the diameter of the wheel in inches.
Write a Python program named tire_volume py that reads from the keyboard the three numbers for a tire and computes and outputs the volume of space
inside that tire
Your program must use at least two functions to receive full credit. One of these functions must calculate the tire volume
If the user enters something that is not expected (ie, it should be a number> 0) for any of the three values asked for your program should not accept it
but should notify the user and reprompt for the data required.
it can look similar to this and these test values can help you know you have it created correctly)
> python tire volume py
Enter the width of the fire in mm (ex 205): 185
Enter the aspect ratio of the tire (ex 60): 50
Enter the diameter of the wheel in inches (ex 15); 14
The approximate volume is 24.09 liters
>python tire volume py
Enter the width of the tire in mm (ex 205) 206
Enter the aspect ratio of the tire (ex 600 60
Enter the diameter of the wheel in inches (ex 15) 15
The approximate volume is 39.92 liters
Transcribed Image Text:tire volume.py The size of a car tire in the United States is represented with three numbers like this: 205/60R15. The first number is the width of the tire in millimeters. The second number is the aspect ratio The third number is the diameter in inches of the wheel that the tire fits. The volume of space inside a tire can be approximated with this formula: yawa (wa + 2540d)/10.000.000.000 v is the volume in liters is the constant Pl, which is the ratio of the circumference of a circle divided by its diameter (use math pi) w is the width of the tire in millimeters a is the aspect ratio of the tire, and dis the diameter of the wheel in inches. Write a Python program named tire_volume py that reads from the keyboard the three numbers for a tire and computes and outputs the volume of space inside that tire Your program must use at least two functions to receive full credit. One of these functions must calculate the tire volume If the user enters something that is not expected (ie, it should be a number> 0) for any of the three values asked for your program should not accept it but should notify the user and reprompt for the data required. it can look similar to this and these test values can help you know you have it created correctly) > python tire volume py Enter the width of the fire in mm (ex 205): 185 Enter the aspect ratio of the tire (ex 60): 50 Enter the diameter of the wheel in inches (ex 15); 14 The approximate volume is 24.09 liters >python tire volume py Enter the width of the tire in mm (ex 205) 206 Enter the aspect ratio of the tire (ex 600 60 Enter the diameter of the wheel in inches (ex 15) 15 The approximate volume is 39.92 liters
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Top down approach design
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.
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