Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started