summaryrefslogtreecommitdiff
path: root/1301/CH4/EX4.15/ex4_15.sce
blob: a2bd109ae16256e35786c7113eed986945159d51 (plain)
1
2
3
4
5
6
7
8
9
clc;
G=6.67*10^-11   //Universal gravitational constant in Nmsquare/kg square
mm=7.36*10^22;  //mass of moon in kg
r=1.74*10^6;   //radius of moon in m
m=75;          //weight of man in kg
g=(G*mm)/(r*r);  //calculating g in m/sec square
w=m*g;          //calculating weight in Newton
disp(g,"Accelaration due to gravity at its surface in m/sec square= ");  //displaying g
disp(w,"Mans weight on moon in Newton = ");  //displaying mass of man on moon.