blob: d1be6c9206750e3d0d50d024b96a3dcfef6fb759 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
clear
//Initialization of variables
h=3/12 //ft
gam=63.4 //lb per cu ft
gam2=0.075 //lb per cu ft
//calculations
P=h*gam
h2=P/gam2
//results
printf("Air height required = %d ft of air",h2)
disp("The answer is a bit different due to roundoff error in textbook.")
|