summaryrefslogtreecommitdiff
path: root/2870/CH1/EX1.3/Ex1_3.sce
blob: c771450833e294f141c1e2790def99a356962157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;clear;
//Example 1.3

//constants used
g=32.174;//gravitational constant in ft/s^2

//given values
m=1;

//calculation
w=(m*g)/g;//weight is mass times the local value of gravitational acceleration
disp(m,'the weight on earth is (in lbf)')