summaryrefslogtreecommitdiff
path: root/608/CH1/EX1.04/1_04.sce
blob: 197cc64f64a3da19be87a2f48859f3f302cbd88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Problem 1.04: A portable machine requires a force of 200 N to move it. How much work is done if the machine is moved 20 m and what average power is utilized if the movement takes 25 s?

//initializing the variables:
F = 200; // in Newton
d = 20; // in m
t = 25; // in sec

//calculation:
W = F*d
P = W/t

printf("\n\nResult\n\n")
printf("\nPower: %.0f watt(W)\n",P)