Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MUST BE DONE IN PYTHON! Procedure Create your Python file When this file is run, ask your friends questions about their wheels and give them

MUST BE DONE IN PYTHON!

image text in transcribed

Procedure Create your Python file When this file is run, ask your friends questions about their wheels and give them the results of the calculations in three steps: 2. When this file is run, ask your friends questions about their wheels and give them the resul 1. Ask the following questions (in this order!), storing the answers in variables as needed What is the diameter of the wheel (in centimeters)? How thick is the wheel (in millimeters)? Respond with: The volume of the wheel (a wheel is a cylinder). 2. Ask the following question: What is the ratio of the inner cutout diameter (as a decimal)? Respond with: The volume of the "inner cutout" The volume of the wheel with the inner cutout removed 3. Ask the following questions (in this order!): How many wheels are you making? What is the cost of the material (in cents per cubic inch)? Respond with: The total amount of material needed. The total number of cubic inches to purchase. .The total cost for all wheel materials 3. In computer science exact formatting of input/output is like putting on socks with shoes, while people might not do it 100% of the time in their personal life, it is extremely unusual not to do it in a professional setting. Therefore you will need to format your input/output exactly like the example below Also, pay special attention to the units: Notes . For precision, you'll want to perform all calculations using floating point numbers, so make sure to use / and // appropriately in your code For readability, you'll want to display all numbers as whole numbers, so use int()to truncate decimals before displaying any numbers to the user Blue underlined text in the example below is typed by the user running the code, and that the os-prompt is red, like Sdemo. Sdemo python3 code.py What is the diameter of the wheel (in centimeters)? 1 How thick is the wheel (in millimeters)? 1 The volume of the wheel without the inner cutout is: 785e mm+3 What is the ratio of the inner cutout diameter (as a decinal)? 0,5 The volume of the inner cutout is: 1962 mm*3 The volume of the wheel with cutout is: 5887 mm 3 How many wheels are you making? 10 What is the cost of the material (in cents per cubic inch)? 10 The total material needed is: 58875 mm 3 The total number of cubic inches to purchase is: 4 cube(s) The cost will be: dollar(s) and 40 cent(s) Sdemo

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions