blob: 0c57f1f4036fcfddfa07db09498eb6294bf964c6 (
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
|
variable width, set it to 0
variable length, set it to 0
variable area
variable ratio
variable gravitational_pull
enter while loop (condition is width and length being in range 1-400 inclusive)
display "Please only enter WIDTH and LENGTH between 1 - 400"
display "Please enter the WIDTH of your kite in centimeters"
input value into width
display "Please enter the LENGTH of your kite in centimeters"
input value into length
display "Width" + width + "Length" + length
set area equal to (width * length) / 2
set area equal to itself / 10000 (this converts to square meters)
display "Area in suqare meters" + area
variable mass, set it equal to (135 * area) / 1000 (finds mass in kg/meter^2)
set gravitational_pull equal to mass * 9.8
set ratio to width / length
if ratio is equal to or more than 1
display "Warning: a lower aspect ratio would provide more stability"
display "Current aspect ratio: " + ratio + " (width/length)"
|