summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-10-19 22:50:35 -0700
committerjacobdw22 <[email protected]>2022-10-19 22:50:35 -0700
commit0655cb591b4f65df4fc14aea8836edb43db54f50 (patch)
treefe7ee5f2e2a59f114bd23696507d97b1fd5ca882
parentsimple changes (diff)
downloadcst116-lab1-jacobdw22-0655cb591b4f65df4fc14aea8836edb43db54f50.tar.xz
cst116-lab1-jacobdw22-0655cb591b4f65df4fc14aea8836edb43db54f50.zip
simple changes
-rw-r--r--cst116-lab1-wilson-pseudo-code.txt14
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