Question: Program assignment 2 Due: March 7, 2019 For a shaft with an allowable shear strength of S lb /in2 to transmit a torque of in

 Program assignment 2 Due: March 7, 2019 For a shaft with

Program assignment 2 Due: March 7, 2019 For a shaft with an allowable shear strength of S lb /in2 to transmit a torque of in - diameter of at least D inches, where D is given by lb, it must have a 16T If P horsepower is applied to the shaft at a rotational speed of N rpm, the torque is given by T63000 Write a program that reads in values for P, N, and S and then calculates and displays the torque developed and required diameter to transmit that torque in table format. Also calculate and display the average torque and diameter for the previous calculated values. Run you program with the following values: P(HP) 20 20 270 N(rpm) 1500 50 40 S(psi) 5000 5000 6500 For full credit your program must use functions (at least 2 functions), file /O and output the calculated values in the proper format with the appropriate headers T in-lb for torque and in for diameter. You will need to use static variable to calculate the average values. (Note: Do not use global variables

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!