blob: c37dfd45ed1be10215924501f24780ad869ab851 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
//initialisation of variables
eo= 87 //percent
ev= 94 //percent
p= 10 //bhpi
//CALCULATIONS
em= eo/ev
em1= em*100
Fhp= p*(1-em)
//RESULTS
printf ('frictional horsepower = %.1f hp',Fhp+0.1)
printf (' \n mechanical efficiency = %.2f percent',em1)
|