diff options
Diffstat (limited to 'CST116-Lab1-Smith-Pseudo-Code.txt')
| -rw-r--r-- | CST116-Lab1-Smith-Pseudo-Code.txt | 14 |
1 files changed, 14 insertions, 0 deletions
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 |