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 8/25, 8/26 Lab 1 spiral.m
convertC2F.m
convertF2C.m
2 9/1, 9/2 Lab 2   M1_2_5, M1_2_6, triangleType, Sticks, angle1, angle2, angle3, Conciseness & efficiency
3 9/8, 9/9 Sec 3   Multiples, sqrRootN, ApproxPi
4 9/16, 9/17 Lab 4 stepPyramidSkeleton.m, Fibonacci.m stepPyramid, fib, binCoef  
5 9/22, 9/23 Sec 5   Mid3, Trig, ShowTrig, IsPythag, ShowPythag, MySin1, digitsOfBinCoef, showDigitsOfBinCoefs  
6 9/30, 10/1 Lab 6   loopPattern.txt, vectorQuery.m, sequence.m, rollDice.m
7 10/6, 10/7 Sec 7   findInMatrix, matrixCSums
8 10/14 (attendance optional) Lab8   myDeterminant, scriptRWStatistics, RandomWalk2D, BoundedRandomWalk2D, scriptBoundedRWStatistics  
9 10/20, 10/21 Sec 9   Non-vectorized version, vectorized version  
10 10/27, 10/28 Lab10   rComplement, rCompBulk, DispCards, MyShuffle  
11 11/3, 11/4 Sec 11
Submit 3.1 and 3.2 on paper at the beginning of next week's discussion
  MakeSquare, ShowMakeSquare, Cut3  
12 11/10, 11/11 Lab12
Submit your completed Fraction.m in CMS by Mon 11/16 at 11pm
Interval.m, Fraction.m   Interval, Fraction.m  
13 11/17, 11/18 Sec 13 intervalArray.m, LocalWeather.m, ithacaWeather.txt  
14 11/25 (attendance optional) Lab 14   Power
15 12/1, 12/2 Lab15 InsertionSort, LargestTriangle InsertionSortInplace, LargestTriangleSol
16 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.