diff options
| author | James Lawrance <[email protected]> | 2021-10-18 22:19:26 -0700 |
|---|---|---|
| committer | James Lawrance <[email protected]> | 2021-10-18 22:19:26 -0700 |
| commit | 0637700e2db089b34b471eaff3245395bc5a2a29 (patch) | |
| tree | a5efeef8e7f737ae8c7d95f680beba8ad6d005cd /Lab 3 Output and Work.txt | |
| parent | Commit with final 10/13/21 night class code, all caught up at that point. (diff) | |
| download | cst116-lab3-jemersonlawrance-0637700e2db089b34b471eaff3245395bc5a2a29.tar.xz cst116-lab3-jemersonlawrance-0637700e2db089b34b471eaff3245395bc5a2a29.zip | |
Diffstat (limited to 'Lab 3 Output and Work.txt')
| -rw-r--r-- | Lab 3 Output and Work.txt | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/Lab 3 Output and Work.txt b/Lab 3 Output and Work.txt index 45ce85d..1bc42ff 100644 --- a/Lab 3 Output and Work.txt +++ b/Lab 3 Output and Work.txt @@ -119,3 +119,115 @@ Error: invalid loan amount C:\Users\there\Source\Repos\cst116-lab3-JEmersonLawrance\x64\Debug\CST116F2021-Lab3.exe (process 12340) exited with code 0. To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. Press any key to close this window . . . + +Section 8.4 #1 pseudocode - +Average Test Scores Program +Input number of Assignments +Loop asking for scores +Average Test Scores = Scores/Assignments +Print Average Test Scores + +Section 8.4 #1 output - + +Enter the number of assignments +7 + +Enter the score for Assignment #1 +100 +Enter the score for Assignment #2 +100 +Enter the score for Assignment #3 +98 +Enter the score for Assignment #4 +88 +Enter the score for Assignment #5 +75 +Enter the score for Assignment #6 +73 +Enter the score for Assignment #7 +73 +The average score of these 7 assignments is 86.7143 + +Section 8.4 #2 output - + +Base length? +16 + +**************** +*************** +************** +************* +************ +*********** +********** +********* +******** +******* +****** +***** +**** +*** +** +* + +C:\Users\there\source\repos\cst116-lab3-JEmersonLawrance\x64\Debug\CST116F2021-Lab3.exe (process 5076) exited with code 0. +To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. +Press any key to close this window . . . + +Section 8.10 #3 - + +output 1- +Where would you like your Fibonacci sequence to terminate? +20 + +1 1 2 3 5 8 13 + +output 2- +Where would you like your Fibonacci sequence to terminate? +5000 + +1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 + +6a - +6.5 Exercises - + +1. a += 25 +2. b *- (a * 2) +3. ++b +4. c %= 5 +5. b /= a + +Section 8.2 #1 - + +output 1 - + +Welcome to the descending even number program. +Please enter an integer between 1 and 50 +50 + +The number you have entered is not between 1 and 50. Try again. + +output 2 - + +Welcome to the descending even number program. +Please enter an integer between 1 and 50 +15 + +15 +14 12 10 8 6 4 2 0 + +Section 8.3 #1 output- + +Welcome to the descending even number program. +Please enter an integer between 1 and 50 +0 + +You have not entered an integer between 1 and 50. Please try again. +100 + +You have not entered an integer between 1 and 50. Please try again. +14 + +14 12 10 8 6 4 2 + +0
\ No newline at end of file |