summaryrefslogtreecommitdiff
path: root/CST116-Lab1-Smith-Pseudo-Code.txt
blob: edf209c7928c838050157b40e090ce8ede411919 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
1. Initialize width, length, area, aspect ratio, mass, and gravitational pull variables
2. Initialize a constant 'mass_per' to be .135 (kg / square meter)
3. Gather the input of the kite's width
4. If the input is less than 1 or greater than 400, ask the user to try again
5. Gather the input of the kite's length
6. If the input is less than 1 or greater than 400, ask the user to try again
7. Set variable area to (width * length) / 2
8. Divide area variable by 10,000
9. Display the area of the kite as meters squared
10. Set the aspect_ratio variable to width / length
11. If the aspect_ratio varible is ≥ 1, tell the user what the aspect ratio is and tell them that this isn't good for stability of the kite
12. Set mass variable to 'mass_per; * area and output the result in kg
13. Set gravitational pull variable to mass * 9.8 and output the result in N/kg
14. END