summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.5/Example1_5.sce
blob: 9061c5c6fcc5a6fb88a4bd605a718c3ddc9f377b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;

// Example: 1.5
// Page: 7

// Solution

printf("Example: 1.5 - Page: 7\n\n");

//*****Data*****//
Patm = 112;// [kPa]
density = 1200;// [kg/cubic m]
g = 9.81;// [m/sqaure s]
h = 0.62;// [m]
//**************//

P = Patm + (density*g*h/1000);// [kPa]

printf("The absolute pressure within the container is %.3f kPa\n",P);