blob: 170b0c9fb3acd1742e19201bb36c5b436a2d58b8 (
plain)
1
2
3
4
5
6
7
8
9
|
clc
//Initialization of variables
capacity=50 //tons
hp=10 //hp
//calculations
beta=778*3.33*capacity/(hp*550)
//results
printf("Coefficient of performance = %.2f",beta)
//The answer given in textbook is wrong
|