diff options
| author | prestonderek <[email protected]> | 2022-10-18 13:44:17 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-18 13:44:17 -0700 |
| commit | 168730939c17d7455aa22aa1c4ab045e88e809a5 (patch) | |
| tree | 12c0b09695ce2c42b7ef6feb8e500f5d2daedaee /BlankConsoleLab/CST116-Lab1-Pseudocode-Preston.txt | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab1-prestonderek-168730939c17d7455aa22aa1c4ab045e88e809a5.tar.xz cst116-lab1-prestonderek-168730939c17d7455aa22aa1c4ab045e88e809a5.zip | |
Commit for part 1 complete
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Pseudocode-Preston.txt')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Pseudocode-Preston.txt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Pseudocode-Preston.txt b/BlankConsoleLab/CST116-Lab1-Pseudocode-Preston.txt new file mode 100644 index 0000000..c6ab8c4 --- /dev/null +++ b/BlankConsoleLab/CST116-Lab1-Pseudocode-Preston.txt @@ -0,0 +1,50 @@ +Agile notes and Pseudocode for Lab1 + +This program requires the following + +2 inputs: + length of the kite in meters + width of the kite in meters + +Notes: + Ask the user for width and length in cm + Print what the user entered for width and length + Computer the area of the kite using Area=(width x length)/2 + Convert the square cm to square m by dividing by 10000 + Print area in sq m, this uses decimals + computer the aspect ratio of the kite. Aspect ratio is width/length + If the aspect ratio is greater than 1 print a warning to user that a lower ratio would provide more stability. + +Output: + Output is self documenting + Shows input with labels, then the output + + +Pseudocode for part 1: + +int width +int length +float areaCM +float areaM +int ratio + +begin main function + print "enter width of kite" + input width + print "enter length of kite" + input length + print "your kite has a width of: " width " and length of: " length + + areaCM = width x length / 2 + areaM = areaCM / 10000 + ratio = width / length + + if ratio >= 1 + "Warning, a lower aspect ratio would provide more stability" + else + "nice aspect ratio" + + print "your kite's area in square meters is: " areaM + + +
\ No newline at end of file |