diff options
Diffstat (limited to 'cst116-lab1-wilson-pseudo-code.txt')
| -rw-r--r-- | cst116-lab1-wilson-pseudo-code.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cst116-lab1-wilson-pseudo-code.txt b/cst116-lab1-wilson-pseudo-code.txt index cd5e5eb..1c0fb41 100644 --- a/cst116-lab1-wilson-pseudo-code.txt +++ b/cst116-lab1-wilson-pseudo-code.txt @@ -14,9 +14,15 @@ DISPLAY "The width is " width " centimeters and the length is " length " centime area = (length * width) / 2; -DISPLAY "The area of the kite is " area / 10000 " square meters." +DISPLAY "The area of the kite is " area / 10000 " square meters."; -aspect_ratio = width/length +aspect_ratio = width/length; -IF aspect_ratio >= 1, DISPLAY "WARNING! Aspect ratio >= 1. Unstable." -ELSE, DISPLAY "Aspect ratio < 1. Good aspect ratio."
\ No newline at end of file +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
\ No newline at end of file |