summaryrefslogtreecommitdiff
path: root/CST116-Lab1-Pseudo-Code-Rogers.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Lab1-Pseudo-Code-Rogers.txt')
-rw-r--r--CST116-Lab1-Pseudo-Code-Rogers.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/CST116-Lab1-Pseudo-Code-Rogers.txt b/CST116-Lab1-Pseudo-Code-Rogers.txt
new file mode 100644
index 0000000..4a88571
--- /dev/null
+++ b/CST116-Lab1-Pseudo-Code-Rogers.txt
@@ -0,0 +1,17 @@
+Lab 1 Pseudo Code
+1. Print "What is the width of the kite in centimeters?:"
+2. Input [kwidth]
+ a. Width input must be 1 < [kwidth] < 400
+3. Print "What is the length of the kite in centimeters?"
+4. Input [klength]
+ a. Length input must be 1 < [klength] < 400
+5. Determine kite area using [karea] = ( [kwidth] * [klength] ) / 2
+6. Convert to meters squared using [ksqm] = [karea] / 10000
+7. Calculate aspect ratio using [kasp] = [kwidth] / [klength]
+8. Calculate mass using [kmass] = [ksqm] * 0.135
+9. Calculate gravitational pull using [kgrav] = [kmass] * 9.8
+10. Print "The kite is [kwidth] centimeters wide and [klength] centimeters long"
+11. If [kasp] is equal to or greater than 1, print "An aspect ratio of <1 will provide more stability. The current aspect ratio is [kasp]"
+ a. Else print "Your aspect ratio is [kasp]"
+12. Print "Assuming a canvas weight of 135g per square meter, the mass of your kite is [kmass]kg."
+13. Print "The gravitational pull on your kite is [kgrav]N"