summaryrefslogtreecommitdiff
path: root/3841/CH7/EX7.5/Ex7_5.sce
blob: 2b6dcf7365455300b299a21bacca0db325cd5656 (plain)
1
2
3
4
5
6
7
8
9
10
clear
//given
//find out mechanical efficency of an engine
bhp=57.
ihp=19.
ihp1=ihp+bhp

//computing according to equtaion
Me=(bhp/ihp1)*100.
printf("\n \n mechanical efficency %.2f percent",Me)