From 0655cb591b4f65df4fc14aea8836edb43db54f50 Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Wed, 19 Oct 2022 22:50:35 -0700 Subject: simple changes --- cst116-lab1-wilson-pseudo-code.txt | 14 ++++++++++---- 1 file 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 -- cgit v1.2.3