Question: IN PYTHON Create a new program that prompts the user for the length in feet and thickness in inches of a cable. Validate the user

IN PYTHON

Create a new program that prompts the user for the length in feet and thickness in inches of a cable. Validate the user input (positive numbers only and cable thickness must 2.0 inches or less). If the user input is invalid, explain the specific error and prompt again. Simulate stretching the cable by applying tension in 1 pound increments (in a loop), and display the length of the cable as it stretches and the tension applied until it breaksthen announce that is has broken. The cable will stretch (thickness * 0.3 feet) for each additional pound applied, up to its breaking point. The cable will break when its length is 116% of the original length. The output will display the pounds applied, and the current length of the cable each time an additional pound of tension is applied, and 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 Databases Questions!