summaryrefslogtreecommitdiff
path: root/CST116-Lab1-Pseudo-Code-Rogers.txt
blob: 4a885719a86a73c7a7d02aba53d34170df098ed8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"