summaryrefslogtreecommitdiff
path: root/CST116-Lab1-Smith-Pseudo-Code.txt
diff options
context:
space:
mode:
author[email protected] <[email protected]>2022-10-05 16:51:48 -0700
committer[email protected] <[email protected]>2022-10-05 16:51:48 -0700
commit3b327147694f7fd0bfdcdb824e9c838a462e62bf (patch)
treee616a74164b581624d9fb1329a1589688c4a347a /CST116-Lab1-Smith-Pseudo-Code.txt
parentMore pushing (diff)
downloadcst116-lab1-smith-master.tar.xz
cst116-lab1-smith-master.zip
Final PushHEADmaster
Diffstat (limited to 'CST116-Lab1-Smith-Pseudo-Code.txt')
-rw-r--r--CST116-Lab1-Smith-Pseudo-Code.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CST116-Lab1-Smith-Pseudo-Code.txt b/CST116-Lab1-Smith-Pseudo-Code.txt
new file mode 100644
index 0000000..edf209c
--- /dev/null
+++ b/CST116-Lab1-Smith-Pseudo-Code.txt
@@ -0,0 +1,14 @@
+1. Initialize width, length, area, aspect ratio, mass, and gravitational pull variables
+2. Initialize a constant 'mass_per' to be .135 (kg / square meter)
+3. Gather the input of the kite's width
+4. If the input is less than 1 or greater than 400, ask the user to try again
+5. Gather the input of the kite's length
+6. If the input is less than 1 or greater than 400, ask the user to try again
+7. Set variable area to (width * length) / 2
+8. Divide area variable by 10,000
+9. Display the area of the kite as meters squared
+10. Set the aspect_ratio variable to width / length
+11. If the aspect_ratio varible is ≥ 1, tell the user what the aspect ratio is and tell them that this isn't good for stability of the kite
+12. Set mass variable to 'mass_per; * area and output the result in kg
+13. Set gravitational pull variable to mass * 9.8 and output the result in N/kg
+14. END \ No newline at end of file