blob: ca8aee92e03e6b0fcbf190ef268e6ff5ff527ca3 (
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
|
Psuedo-Code
DISPLAY "What is the width of the kite in centimeters:";
READ width
WHILE width is not between 1 and 400, loop
ELSE, RUN
DISPLAY "What is the length of the kite in centimeters:";
READ length;
WHILE length is not between 1 and 400, loop
ELSE, RUN
DISPLAY "The width is " width " centimeters and the length is " length " centimeters.";
area = (length * width) / 2;
DISPLAY "The area of the kite is " area / 10000 " square meters.";
aspect_ratio = width/length;
IF aspect_ratio >= 1, DISPLAY "WARNING! Aspect ratio >= 1. Unstable.";
ELSE, DISPLAY "Aspect ratio < 1. Good aspect ratio.";
mass = 135 * (area/10000);
DISPLAY "The mass of your kite is " mass " grams.";
gravitational_pull = mass * 9.81;
DISPLAY "The gravitational pull of your kite is " gravitational_pull " grams * m/s^2";
RETURN
|