summaryrefslogtreecommitdiff
path: root/1529/CH1/EX1.4/1_04.sce
blob: f9f5240114b1e5bacfd77d1ccd6be6786e0b8094 (plain)
1
2
3
4
5
6
7
8
9
//Chapter 1, Problem 4
clc;
F=200;              //force in Newton
D=20;               //distance in metre
T=25;               //time in seconds
W=F*D;              //calculating work done in kJ
printf("Work done = %f kJ\n\n\n",W)
P=W/T;              //calculating Power in watt
printf("Average power utilized = %f W\n\n\n",P);