summaryrefslogtreecommitdiff
path: root/2420/CH10/EX10.5/10_5.sce
blob: c3c45705e5dc7c98178902976244f405ac13c17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//Initialization of variables
n1=400 //rpm
mv1=10000 //lb
mv2=15000 //lb
h1=2 //in of water
hp1=4 //hp
//calculations
n2=mv2/mv1 *n1
h2=h1*(n2/n1)^2
hp2=hp1 *(n2/n1)^3
//results
printf("The speed = %d rpm",n2)
printf("\n The pressure = %.1f in of water",h2)
printf("\n Power = %.1f hp",hp2)