diff options
| -rw-r--r-- | Lab01-Pseudocode.txt | 55 |
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 |