From 118fb74ad1c2b386cca4845d4b5af2ec72625eb9 Mon Sep 17 00:00:00 2001 From: CEOofOogaBooga Date: Tue, 18 Oct 2022 20:25:57 -0700 Subject: Finished Lab 1 --- Ouput Lab 1.txt | 9 +++++++++ Pseudo Code Lab 1.txt | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Ouput Lab 1.txt create mode 100644 Pseudo Code Lab 1.txt diff --git a/Ouput Lab 1.txt b/Ouput Lab 1.txt new file mode 100644 index 0000000..4d62544 --- /dev/null +++ b/Ouput Lab 1.txt @@ -0,0 +1,9 @@ +Enter width in cm: 30 +Enter length in cm: 40 +Area in square meters: 0.06 +Ratio: 0.75 +Mass in kg: 0.0081 +Gravitational pull is: 0.07938 + +C:\Users\furyf\OneDrive\Desktop\Homework\CST Homework\CST116 Lab 1\Debug\BlankConsoleLab.exe (process 23588) exited with code 0. +Press any key to close this window . . . \ No newline at end of file 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