From 1c714c077853e8bd75abcc9a86916c851f7cec80 Mon Sep 17 00:00:00 2001 From: Trenton Stark Date: Wed, 26 Oct 2022 20:13:23 -0700 Subject: Added psuedo code. After original due date should be marked down 30% --- BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 BlankConsoleLab/cst116-lab1-stark-psuedo-code.txt (limited to 'BlankConsoleLab') 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 -- cgit v1.2.3