CS1112M --> Exercises

Exercises are assigned in discussion 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 1/28, 1/29 Lab 1 spiral.m tempF2C.m
2 2/3, 2/4 Lab 2   M1_2_5, M1_2_6, triangleType, Sticks, angle1, angle2, angle3, Conciseness & efficiency
3 2/10, 2/11 Sec 3   Multiples, mySqrRoot, ApproxPi
4 2/18 (attendance optional) Lab 4 stepPyramidSkeleton.m, Fibonacci.m stepPyramid, fib, binCoef  
5 2/24, 2/25 Sec 5   Mid3, Trig, ShowTrig, IsPythag, ShowPythag, MySin1, digitsOfBinCoef, showDigitsOfBinCoefs  
6 3/3, 3/4 Lab 6   vectorQuery.m, sequence.m, rollDice.m
7 3/9, 3/10 Sec 7   findInMatrix, matrixCSums, matrixCSums_vectorized, scriptRWStatistics, RandomWalk2D, BoundedRandomWalk2D, scriptBoundedRWStatistics  
8 3/17, 3/18 Lab8   Non-vectorized version, vectorized version  
9 3/24, 3/25 Sec 9   rComplement, rCompBulk, countPattern, countPattern2
10 4/7, 4/8 Lab10   MakeSquare, SquareArray Rightmost, DispCards, MyShuffle, ShowMyShuffle, Cut3, ShowCut3 (CheckCycle just for fun)
11 4/14, 4/15 Lab 11 Interval, Fraction, guessingGame class designs
12 4/21, 4/22 Lab12
Submit 4.2 and 4.3 in CMS by Sun 4/26 at 11pm
Interval.m, intervalArray.m, LocalWeather.m, ithacaWeather.txt Interval, isInRange, LocalWeather
13 4/28, 4/29 Sec 13 Video: Trace removeChar diceGameV2, Power
14 5/5, 5/6 Lab14 InsertionSort, LargestTriangle InsertionSortInplace, LargestTriangleSol
15 Set by College of Engineering 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 during the discussion class. If there is a homework exercise, it should be submitted via CMS.