The torque and torque horsepower levels of the Pelton water turbine shown below
ID: 3926888 • Letter: T
Question
The torque and torque horsepower levels of the Pelton water turbine shown below are to be evaluated. Such turbines are useful for low levels of fluid flow. The programmer is supplied the following formulas. U2 = D . Rpm.Pi 60 T = ((ro.Ae)/2)D . U1(U1 - U2)(1 - COS (A) ) HP = 2Pi . Rpm . T 33,000 Definition of Terms U1 nozzle water exit velocity (ft/sec) U2 velocity of the wheel blades (ft/sec) D diameter of the wheel (ft) Rpm rotational speed of the wheel (rev/min) Ae cross-sectional area of stream of water striking the blades (ft^2) ro mass density of the fluid (slugs/ft^3) A blade turning angle (degrees) T torque developed by the wheel (ft - lb) HP horsepower developed by the wheel (a) Develop the program flowchart showing the proper order of input/output, arithmetic assignment.. (b) Code and run a C program to read the data as shown below, and write the output as arranged below. Data Ae D rpm A ro U1 ft2 (ft) (rev/min) (degrees) (slugs/ft^3) (ft/sec) 0.038 2 700 155 1.95 120 Your out put should be: TORQUE AND HORSE POWER OF A PELTON WHEEL NOZLE WATER EXIT VELOCITY = XXX.XX FT/SEC WHEEL DIAMETER TORQUE HORSE POWER ft ft-lbs x.x xxx.xx xxx.xx
I need help writing a succsessful code in ansi c NOT c++
Explanation / Answer
Answer:
Note: Printing statement are provided in the Question
C code:
//header files
#include <stdio.h>
#include <cmath>
#include <iomanip>
//starts the main program
int main()
{
//declares the variable
float Ae, D, rpm, A, ro, U1, U2, T, HP, Pi = 3.14159;
//printing statement to get input
printf( "Data Ae D rpm A ro U1 ft2 (ft) (rev/min) (degrees) (slugs/ft^3) (ft/sec) ");
//getting the values
scanf("%f%f%f%f%f%f", &Ae , &D , &rpm ,& A ,& ro ,& U1);
//Applying the calculation formulae
U2 = (D * rpm * Pi) / 60.0;
T = ((ro * Ae) / 2.0) * D * U1 * (U1 - U2) * (1 - cos(A));
HP = (2 * Pi * rpm * T) / 33000;
//printing statements
printf("TORQUE AND HORSE POWER OF A PELTON WHEEL ");
printf( "NOZLE WATER EXIT VELOCITY=%0.3f " ,U1 );
printf( "WHEEL DIAMETER TORQUE HORSE POWER ");
printf( "ft ft-lbs ft-lb/s ");
printf("%0.3f",D );
printf("%0.3f%0.3f", T , HP , " ");
system("pause");
return 0;
}
Sample Output:
Data
Ae D rpm A ro U1
ft2 (ft) (rev/min) (degrees) (slugs/ft^3) (ft/sec)
0.038 2 700 155 1.95 120
TORQUE AND HORSE POWER OF A PELTON WHEEL
NOZLE WATER EXIT VELOCITY = 120.000
WHEEL DIAMETER TORQUE HORSE POWER
ft ft-lbs ft-lb/s
2.000617.50382.301Press any key to continue . . .
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.