Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Usi 1. [ball,_filler.py] You have been contracted by a bowling ball manufacturer to write a program that estimates the amount of ball filler they will

Usi image text in transcribed
1. [ball,_filler.py] You have been contracted by a bowling ball manufacturer to write a program that estimates the amount of ball "filler" they will need to order for a new line of bowling balls Each spherical bowling ball has a diameter that can vary from 8.4 to 8.6 inches Inside that ball there are two things: (1) a uniquely shaped metal object called the core that affects the spin of the ball, and (2) stuff packed around the core making the ball's spherical shape called the filler. Given the intended diameter of a bowling ball, the volume of the ball's core, and the number of bowling balls to produce, your program should calculate the amount of filler the company should order For example, let assume a company wants to produce 100 bowling balls with a diameter of 8.5 inches. Each of these balls will contain a core that has a volume of 124 inches cubed. Then each ball will require 197.55 inches cubed of filler (i.e, the total volume of the spherical balle containing no core, which can be computed with the formula V minus the volume of the core). If each ball needs 197.55 inches cubed of filler, and the company is producing 100 balls, then in total they will need -19,755 inches cubed of filler. You program should prompt a user to input in this order: the number of balls to manufacture, the diameter of each ball in inches, and the volume of the core in inches cubed. It should then compute and output the total amount of filler required Below is an example interaction with a program correctly solving this problem (recall that user inputs are in bold text): How many bonling balls will be manufactured? 180 What is the diameter of each ball in inches? 8.5 What is the core volume in inches cubed? 124 You will need 19755.589806430524 inches cubed of filler

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago