diff options
| author | Jordan HarrisToovy <[email protected]> | 2021-10-18 01:07:43 -0700 |
|---|---|---|
| committer | Jordan HarrisToovy <[email protected]> | 2021-10-18 01:07:43 -0700 |
| commit | 3245f72ea310b3ea0f1035f60e86f41d8f0371e7 (patch) | |
| tree | 08a20ef965b0682d06be724d811052660e0cec99 /CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt | |
| parent | Add online IDE url (diff) | |
| download | cst116-lab3-jordanht-oit-3245f72ea310b3ea0f1035f60e86f41d8f0371e7.tar.xz cst116-lab3-jordanht-oit-3245f72ea310b3ea0f1035f60e86f41d8f0371e7.zip | |
Temporary push for backup
Diffstat (limited to 'CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt')
| -rw-r--r-- | CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt b/CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt new file mode 100644 index 0000000..927750d --- /dev/null +++ b/CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt @@ -0,0 +1,27 @@ +This file contains all work not applicable to being answered in code/output form. + +6.4 Exercises #1: +0 +2 +3 +3 +2 + + +7.1 Exercises #1-6: +1) Wrong syntax - should be: int_exp1 >= int_exp2 +2) Not a conditional - should be: int_exp1 == int_exp2 (unless you wanted an assignemnt) +3) Wrong syntax - should be: int_exp1 != int_exp2 +4) "A" is a string, will always evaluate to false - should be: char_exp == 'A' +5) Mismatched data type - should be: int_exp1 > 66 for clarity (66 is the decimal value of 'B'), although it should work +6 Wrong syntax - should be: (int_exp1 < 2) && (int_exp1 > -10) + + +6.5 Exercises #1-5: +1) a += 25 +2) b *= (a * 2) +3) b++ +4) c %= 5 +5) b /= a + + |