From 118fb74ad1c2b386cca4845d4b5af2ec72625eb9 Mon Sep 17 00:00:00 2001 From: CEOofOogaBooga Date: Tue, 18 Oct 2022 20:25:57 -0700 Subject: Finished Lab 1 --- Pseudo Code Lab 1.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Pseudo Code Lab 1.txt (limited to 'Pseudo Code Lab 1.txt') 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 -- cgit v1.2.3