summaryrefslogtreecommitdiff
path: root/Pseudo Code Lab 1.txt
blob: 4d81f5e956911a209a322e7182aecc2cc21ac746 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Under main
set and place width, length, area, ratio, mass, and gravity as 0.
while width or length is less than 1 or greater than 400,
warn user that they need to input a number that is greater
than 1 and less than 400.
output "enter width in cm: "
input width
output "enter length in cm: "
input length
area is equal to ((length*width)/2)/10000
ouput the area as "area in square meters: "
ratio is equal to width/length
output ratio as "ratio: "
if ratio is greater than or equal to 1,
output "warning: use a lower ratio for stability"
mass is equal to (area*135grams)/1000
output mass as "mass in kg: "
gravity is equal to mass*9.8
output gravity as "gravitational pull is: "