diff options
Diffstat (limited to 'Pseudo Code Lab 1.txt')
| -rw-r--r-- | Pseudo Code Lab 1.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Pseudo Code Lab 1.txt b/Pseudo Code Lab 1.txt new file mode 100644 index 0000000..4d81f5e --- /dev/null +++ b/Pseudo Code Lab 1.txt @@ -0,0 +1,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: "
\ No newline at end of file |