From 3b327147694f7fd0bfdcdb824e9c838a462e62bf Mon Sep 17 00:00:00 2001 From: "smithbenjamin2022@gmail.com" Date: Wed, 5 Oct 2022 16:51:48 -0700 Subject: Final Push --- CST116-Lab1-Smith-Pseudo-Code.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CST116-Lab1-Smith-Pseudo-Code.txt (limited to 'CST116-Lab1-Smith-Pseudo-Code.txt') diff --git a/CST116-Lab1-Smith-Pseudo-Code.txt b/CST116-Lab1-Smith-Pseudo-Code.txt new file mode 100644 index 0000000..edf209c --- /dev/null +++ b/CST116-Lab1-Smith-Pseudo-Code.txt @@ -0,0 +1,14 @@ +1. Initialize width, length, area, aspect ratio, mass, and gravitational pull variables +2. Initialize a constant 'mass_per' to be .135 (kg / square meter) +3. Gather the input of the kite's width +4. If the input is less than 1 or greater than 400, ask the user to try again +5. Gather the input of the kite's length +6. If the input is less than 1 or greater than 400, ask the user to try again +7. Set variable area to (width * length) / 2 +8. Divide area variable by 10,000 +9. Display the area of the kite as meters squared +10. Set the aspect_ratio variable to width / length +11. If the aspect_ratio varible is ≥ 1, tell the user what the aspect ratio is and tell them that this isn't good for stability of the kite +12. Set mass variable to 'mass_per; * area and output the result in kg +13. Set gravitational pull variable to mass * 9.8 and output the result in N/kg +14. END \ No newline at end of file -- cgit v1.2.3