Question: . Write a Python program to calculate the number of dimples that can be found on new golf balls. Most dimples on a normal golf

. Write a Python program to calculate the number of dimples that can be found on new golf balls. Most
dimples on a "normal" golf ball cover about 1/8th [0.1250] square inches. The program should calculate
the surface area and determine the total number of dimples that can be punched onto the ball as an
integer number. Input from the keyboard two floating-point values the diameter of a golf ball in inches
and the required square inch value for one dimple. Assume proper input.
Output to the screen the ball diameter and surface area value formatted to two decimal places
as well as the total number of dimples rounded to the nearest integer. Finally, the program should ask if
the user wants to run the program again (Check case). Use literals and at least one function for the
calculation. Refer to the sample output below.
Sample Run:
Ball diameter (inches): 1.68
Dimple area (inches): 0.1250
1.68" golf ball: surface area of 8.87 sq. inches: 70 dimples
Run Again (Y/N): N
Name the program: DimplesXX.py where XX are your initials

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This question is complete Lets solve it stepbystep To write a Python program to calculate the number of dimples on a golf ball given the diameter of t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!