CIS 40
CodeLab Assignments
The section numbers are the section numbers in CodeLab;
they are sometimes different than the sections in our book,
perhaps due to use of a different edition of the book
by the CodeLab people.
CodeLab Assignment 1
Chapter 2: Variables, expressions and statements
-
Section 2.2 Variables: do 4 of 13 exercises
51001 51013 51014 51124 51125 51019 51043
51168 51169 51171 51170 51086 51087
-
Section 2.5 Operators and operands: do 10 of 13 exercises
51030 51031 51032 51033 51034 51036 51037
51044 51045 51046 51047 51048 51029
-
Section 2.6 Expressions: do 10 of 13 exercises
51095 51093 51094 51878 51085 51107 51871
51873 51874 51875 51872 51876 51877
-
Section 2.8 String operators: do 3 of 4 exercises
51754 51755 51756 51869
- Subtotal for this assignment is 27 exercises
- Cumulative subtotals is 27 exercises
CodeLab Assignment 2
Chapter 3: Functions
-
Section 3.1 Function calls: do 8 of 11 exercises
51143 51073 51144 51074 51075 51076 51077
51145 51146 51147 51150
-
Section 3.2 Type conversion functions: do 5 of 7 exercises
51750 51751 51752 51753 51020 51023 51026
-
Section 3.4 Composition: do 1 of 2 exercises
51148 51149
-
Section 3.11 Fruitful and void functions do 7 of 9 exercises
51136 51137 51155 51156 51139 51140 51142
51151 51152
- Subtotal for this assignment is 21 exercises
- Cumulative subtotals is 48 exercises
CodeLab Assignment 3
Conditionals and recursion
-
Section 5.1 Modulus operator: do 2 of 3 exercises
51035 51880 51881
-
Section 5.2 Boolean expressions: do 10 of 21 exercises
51052 51055 51053 51054 51056 51057 51058
51059 51060 51065 51066 51067 51000 51001
51008 51098 51099 51882 51883 51884 51109
-
Section 5.3 Logical operators subsections
-
Basics: do 4 of 9 exercises
51061 51062 51063 51064 51185 51186 51110
51111 51112
- Negation: do 2 of 4 exercises
51113 51065 51173 51865
- char range: do 4 of 8 exercises
51857 51858 51859 51860 51861 51862 51863
51864
- Numerical range: do 1 of 2 exercises
51910 51911
-
Section 5.4 Conditional execution: do 3 of 5 exercises
51116 51102 51117 51114 51115
-
Section 5.5 Alternative execution: do 4 of 6 exercises
51119 51118 51217 51120 51129 51130
-
Section 5.6 Chained conditionals do 3 of 5 exercises
51160 51121 51218 51122 51105
-
Section 5.8 Recursion do 0 omit
- Subtotal for this assignment is 33 exercises
- Cumulative subtotals is 81 exercises
CodeLab Assignment 4
- Section 6.1 do 7 exercises
- Chapter 7 subsetions (you may wish to do some of the omitted subsections later):
- Loops: do 2 of the exercises
- Numeric loops: do 3 of the first 8 exercises
- Loops and sequences: do 0 omit
- Loops more advanced: do 0 omit
- for loops: do 4 of the exercises
- Functions with loops: do 0 omit
- Input loops: do 2 of the first 9 exercises
- Subtotal for this assignment is 26 exercises
- Cumulative subtotals is 107 exercises
CodeLab Assignment 5
- Section 8.1 do 4 of the exercises
- Section 8.4 do 0 omit
- Section 8.7 do 0 omit
- Section 8.8 do 0 omit
- Subtotal for this assignment is 4 exercises
- Cumulative subtotals is 111 exercises
CodeLab Assignment 6
- Chapter 10 setions:
- 10.1: do 3 of the exercises
- 10.2: do 9 of the exercises
- 10.3: do 0 optional
- 10.4: do 2 of the exercises
- 10.5: do 4 of the exercises
- 10.6: do 2 of the exercises
- 10.7: do 0 omit
- 10.8: do 3 of the exercises
- Chapter 11:
- 11: do 0 omit
- 11.2: do 0 omit
- 11: do 0 omit
- Chapter 12: do 0 omit
- Chapter 14: 4 of the first 6 exercises
- Subtotal for this assignment is 30 exercises
- Cumulative subtotals is 141 exercises
CodeLab Assignment 7
- Chapters 15 and 16: do 4 of the first 6 exercises
- Subtotal for this assignment is 4 exercises
- Cumulative subtotals is 145 exercises
There are 145 exercises in this course.