diff options
| author | jacobdw22 <[email protected]> | 2022-10-19 22:41:01 -0700 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-10-19 22:41:01 -0700 |
| commit | b063f3eb13c9d2c2b58da853f7381fea98400833 (patch) | |
| tree | 18794d60a409866aa67d610d0033481e8a5d11d3 /cst116-lab1-wilson-pseudo-code.txt | |
| parent | simple changes (diff) | |
| download | cst116-lab1-jacobdw22-b063f3eb13c9d2c2b58da853f7381fea98400833.tar.xz cst116-lab1-jacobdw22-b063f3eb13c9d2c2b58da853f7381fea98400833.zip | |
simple changes
Diffstat (limited to 'cst116-lab1-wilson-pseudo-code.txt')
| -rw-r--r-- | cst116-lab1-wilson-pseudo-code.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cst116-lab1-wilson-pseudo-code.txt b/cst116-lab1-wilson-pseudo-code.txt new file mode 100644 index 0000000..cd5e5eb --- /dev/null +++ b/cst116-lab1-wilson-pseudo-code.txt @@ -0,0 +1,22 @@ +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."
\ No newline at end of file |