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 and 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 feet for each pound of tension
applied. The cable will break when it is 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
