aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt')
-rw-r--r--CST116F2021-Lab3/CST116 Lab3 Textual Work Harris-Toovy.txt27
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
+
+