diff options
| author | Trenton Stark <[email protected]> | 2022-10-26 20:13:23 -0700 |
|---|---|---|
| committer | Trenton Stark <[email protected]> | 2022-10-26 20:13:23 -0700 |
| commit | 1c714c077853e8bd75abcc9a86916c851f7cec80 (patch) | |
| tree | 126e07702f5d4c1e40d1150a45a6f0b9106a88f2 | |
| parent | corrected version number (diff) | |
| download | cst116-lab1-stark-master.tar.xz cst116-lab1-stark-master.zip | |
| -rw-r--r-- | BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt b/BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt new file mode 100644 index 0000000..038abcd --- /dev/null +++ b/BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt @@ -0,0 +1,11 @@ +Ask for width in a loop that repeats if input isn't 1 - 400 +Ask for length in a loop that repeats if input isn't 1 - 400 + +area = ((width * length) / 2) / 10000 +ratio = width / length +mass = area * 135 +force = (mass / 1000) * 9.8 + +print width, length, and ratio labeled with units +if ratio >= 1 print warn the user that the kite could be unstable +print area, mass, and gravity labeled with units
\ No newline at end of file |