diff options
| author | CEOofOogaBooga <[email protected]> | 2022-10-18 20:25:57 -0700 |
|---|---|---|
| committer | CEOofOogaBooga <[email protected]> | 2022-10-18 20:25:57 -0700 |
| commit | 118fb74ad1c2b386cca4845d4b5af2ec72625eb9 (patch) | |
| tree | ba6535d0b13088a3f450352e9c61bcb6b58a5fbb /Pseudo Code Lab 1.txt | |
| parent | Formatted (diff) | |
| download | cst116-lab1--trinh--master.tar.xz cst116-lab1--trinh--master.zip | |
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 |