summaryrefslogtreecommitdiff
path: root/Lab01-Pseudocode.txt
diff options
context:
space:
mode:
authorAnibal LopezBonilla <[email protected]>2022-10-19 22:43:16 -0700
committerAnibal LopezBonilla <[email protected]>2022-10-19 22:43:16 -0700
commit207036a3902416b63e301e6371ac1549ca8c215e (patch)
treeca27709c7bde33c36bd56b8c8a1016f548ba75e0 /Lab01-Pseudocode.txt
parentPush 10 (diff)
downloadcst116-lab1-lopez-bonilla-master.tar.xz
cst116-lab1-lopez-bonilla-master.zip
Final PushHEADmaster
Diffstat (limited to 'Lab01-Pseudocode.txt')
-rw-r--r--Lab01-Pseudocode.txt55
1 files changed, 55 insertions, 0 deletions
diff --git a/Lab01-Pseudocode.txt b/Lab01-Pseudocode.txt
index e69de29..5262951 100644
--- a/Lab01-Pseudocode.txt
+++ b/Lab01-Pseudocode.txt
@@ -0,0 +1,55 @@
+Before Program Begins
+
+Float variables width, length, Area, aspectR , Mass, graPull are introduced.
+
+Program starts
+
+Display "Hello welcome to the Kite App"
+
+Display "Please enter your kite's width in CM"
+
+User enter width of kite
+
+while the width is less then 1 OR width is greater then 400 (While statement)
+
+Display "Please enter your kite's width in CM"
+
+User enter width of kite
+
+End of while statement
+
+Display "Please enter your kite's length in CM"
+
+User enter length of kite
+
+while the length is less then 1 OR width is greater then 400 (While statement)
+
+Display "Please enter your kite's length in CM"
+
+User enter length of kite
+
+End of while statement
+
+Display "Your kite Measurements is " width "by" length
+
+Area calculation is done (Area=width*length)/2
+
+Conversion to square meters is done here Area = Area / 1000
+
+Display "The area of the kite in squre meter is " Area "Square Meters"
+
+Aspect Ratio Calculation is done (aspectR = width / length)
+
+Display "The aspect ratio of your kite is " aspectR
+
+if the aspectR is greater than or equal to one
+
+Display "Keep in mind, a lower aspect ratio would provide more stability"
+
+Mass is calculated (Mass = Area * 135/1000
+
+Gravitional Pull is calculated (graPull = Mass * 9.8)
+
+Display "Your Kite Weighs: " Mass
+
+Display "The gravitational pull of your kite is " graPull