summaryrefslogtreecommitdiff
path: root/Lab01-Pseudocode.txt
blob: 52629517e5835274e490ea473ffc671996a4d559 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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