Question: Write a program that requests a cable length ( must be positive ) from the user and a cable thickness ( must be between 0

Write a program that requests a cable length (must be positive) from the user
and a cable thickness (must be between 0.1 and 2.5) in inches. Validate the
input and keep requesting until valid input is received. Write a loop that will
simulate applying one pound of tension and stretching the cable for each
repetition of the loop.
The cable will stretch its thickness times 0.28 feet for each pound of tension
applied. The cable will break when it is 112% of its original length. Output the
pounds of tension on the cable and the length for each pound applied, and
announce when the cable has broken.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!