blob: b122c01bb960d73fcb4e518de5e4536768faa11c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
//initialisation of variables
v=2//ft^3
v2=20//ft^3
p=100000//ft lb
v2=10.41//lb/in^2
v3=10//lb/in^2
p1=1.3//lb
p2=(v2*199.5)/9.95//lb/in^2
//CALCULATIONS
P=(p2/v3-v2)//lb/in^2
//RESULTS
printf('The initial andfinal pressure=% f lb/in^2',P)
|