CS1112M --> Exercises

Homework and section/lab exercises are posted here. Section/Lab exercises are to be submitted in the section/lab.

Exercises are assigned in section/lab. Generally you will start the work in class and, if necessary, complete the work on your own that week--don't get behind. Be sure to sign in at each section/lab so that you get credit for doing the exercise.

Exercise
Due Date
Assignment
Code/Data
Tips
Solutions
1 8/31, 9/1 Lab 1 spiral.m -
2 9/8,9/9 Lab 2   M1_2_5, M1_2_6, triangleType, Sticks, angle1, angle2, angle3, Conciseness & efficiency
3 9/15, 9/16 Sec 3   Multiples, ApproxPi, OneMill
4 9/21, 9/22 Lab4 stepPyramidSkeleton.m, Fibonacci.m, iRobotCreateSimulatorToolbox.zip, squarePath.m stepPyramid, fib, squarePathSol
5 9/29, 9/30 Sec 5   Mid3, Trig, ShowTrig,IsPythag, ShowPythag, MySin1, ShowSine
6 10/5, 10/6 Lab 6   rollDice.m, vectorQuery.m, sequence.m
7 - Sec 7   myDeterminant, myDeterminantLoop, findInMatrix, scriptRWStatistics, RandomWalk2D, BoundedRandomWalk2D, scriptBoundedRWStatistics
8 10/19,10/20 Lab8   Non-vectorized version, vectorized version
9 10/26, 10/27 Sec 9   rComplement, countPattern, countPattern2
10 11/3, 11/4 Lab10   DispCards, MyShuffle, Cut3, MakeSquare, ShowMyShuffle, ShowCut3, ShowMakeSquare
11 11/10,11/11 Sec11   longLifeBulb, mat2vec, i2rc
12 11/17 , 11/18 Lab12 PlayChimes.m, BigBen.wav Prob12346, Prob5
13 11/23, 11/24 Sec13   insertSortInplace, mergeSortTrace
14 11/30, 12/1 Lab14 LargestTriangle LargestTriangleSol
15 12/8 Course Evaluation    

 

Grading

Unless otherwise specified, each exercise will receive a score of usually 0 or 1 point with no distinction between correctness and style. Discussion exercises are checked in the lab/section. If there is a homework exercise, it should be submitted via CMS.