Question
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
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 ball (Links to an external site.)Links to an external site. containing no core, which can be computed with the formula V=43r3, 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 bowling balls will be manufactured? 100 What is the diameter of each ball in inches? 8.5 What is the core volume in inches cubed? 124 You will need 19755.509806430524 inches cubed of filler
How do I write a Python program for this?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started