CS100M --> Exercises
Homework and lab exercises are posted here. Lab exercises are to be submitted in the lab.
You may complete and submit a homework exercise with one partner. You may have different partners for different exercises. You and your partner may attend different sections.
Exercise |
Due Date |
Assignment |
Code/Data Tips |
Solutions |
Lab 1 |
1/23, 1/24
in section |
lab1.pdf |
spiral.m |
- |
Lab 2 |
1/27, 1/28
in section |
Lab2.pdf |
|
angle1.m
angle2.m
angle3.m |
Sec 3 |
2/6, 2/7
in section |
Sec3.pdf |
|
sec3sol.txt |
Lab 4 |
2/13, 2/14
in section |
Lab4.pdf |
|
see solutions to Exercises 3 and 5 |
Sec 5 |
2/20, 2/21
in section |
Sec5.pdf |
|
aPrime.m
lastTwinPair.m
multiplesofk.m
mycosine.m |
Lab 6 |
2/27, 2/28
in section |
lab6.pdf |
|
findGGT.m
findPatternSol.m
frequencyCount.m
sequence.m
vectorQuery.m |
Sec 7 |
3/6, 3/7
in section |
Sec 7.pdf |
|
countGGT.m
countPattern.m
determinant.txt |
Lab 8 |
3/13, 3/17
in section |
lab8.pdf |
|
CalculatorTest.java
RandomInt.java |
Lab 9 |
3/27, 28
in section |
Sec9.pdf |
|
sec9sol.txt |
Lab 10 |
4/3, 4/4
in section |
CS 100M Lab 10 |
|
Lab10.java
Student.java |
Sec 11 |
4/10, 4/11
in section |
sec11.pdf |
|
Dice.java
Section11.java |
Lab 12 |
4/17, 4/18
in section |
lab12.pdf |
|
BinSearch.java
Lab12.java |
Sec 13 |
4/24, 4/25
in section |
sec13.pdf |
|
Dice.java
BagOfDice.java
Polynomial.java
Quadratic.java |
Lab 14 |
5/1, 5/2
in section |
lab14.pdf |
Array2d.java
MatrixFun.java |
Array2dCom.java
MatrixFunSol.java |
Exercise 15 |
4/29 |
Course Eval |
|
|
Exercise Submission
Unless otherwise specified, use the on-line submission system CMS for homework exercises. Lab and section exercises are submitted in the lab/section.
Grading
Unless otherwise specified, each exercise will receive a score of usually 0 or 1 point with no distinction between correctness and style.