Question: Write a program to calculate the torque and diameter of a shaft. In order for a shaft with an allowable shear strength of S pounds

Write a program to calculate the torque and diameter of a shaft. In order for a shaft with an allowable shear strength of S pounds per inch2 to transmit a torque of T in pounds, it must have a diameter of at least Write a program to calculate the torque and diameter of a shaft. inches. If P horsepower is applied to the shaft at N rpm, the torque is computed byIn order for a shaft with an allowable shear strength of S . Your program should ask the user to enter values for P, N and S and calculate and display the torque and diameter of a shaft capable of transmitting that torque. To get the cube root, use:

D = pow((16*T)/S,0.333);

In order to use pow, you will have to #include

Test with the following values: P N S 20 1500 5000 20 50 5000 270 40 6500 And then some values of your own.

A typical run would be: Enter values for horsepower(P), rpm(n) and shear strength(s) 20 1500 5000 P(HP) N(rpm) S(psi) T(torque) D(diameter) 20.000 1500.000 5000.000 840.000 1.390 inches

D= 167 S

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!