blob: 1c0fb41143d74af4c1068184df4bd68750acfd4e (
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
|
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 / sq meter.";
RETURN
|