diff options
Diffstat (limited to 'BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt')
| -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 |