summaryrefslogtreecommitdiff
path: root/psuedocode.txt
diff options
context:
space:
mode:
authorWyatt <[email protected]>2022-10-18 20:47:13 -0700
committerWyatt <[email protected]>2022-10-18 20:47:13 -0700
commit913adeb124f1bb02a2f8770c1b891eff81f4c217 (patch)
treeb43fe7e59f7c4693105c5956707a0c3738fab853 /psuedocode.txt
parentfinished (diff)
downloadcst116-lab1-johnson-master.tar.xz
cst116-lab1-johnson-master.zip
gravitational_constantHEADmaster
Diffstat (limited to 'psuedocode.txt')
-rw-r--r--psuedocode.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/psuedocode.txt b/psuedocode.txt
new file mode 100644
index 0000000..7167fc1
--- /dev/null
+++ b/psuedocode.txt
@@ -0,0 +1,21 @@
+get input user input on width (float)
+if greater than 400 or less than 1, ask again.
+
+repeat upper lines for variable length
+
+
+set area to ((width * length)/2)/10000
+print area
+
+set aspect_ratio to width/length
+if aspect_ration is greater than one, warn user
+
+constant kite_weight set to 135
+
+set mass to (area*kite_weight)/10000
+print mass
+
+constant gravitational_constant set to 9.8
+
+set gravitational_pull to mass*gravitational_constant
+print gravitational_pull