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/28, 8/29 Lab 1 spiral.m tempF2C.m
2 9/4, 9/5 Lab 2   M1_2_5, M1_2_6, triangleType, Sticks, angle1, angle2, angle3, Conciseness & efficiency
3 9/11/, 9/12 Sec 3   Multiples, sqrRootN, ApproxPi
4 9/18, 9/19 Lab 4 stepPyramidSkeleton.m, Fibonacci.m stepPyramid, fib, binCoef, dispFigure  
5 9/25, 9/26 Sec 5 Note: Question 5 looks ahead to the use of vectors in graphics. You do not need to know this for Prelim 1. Mid3, Trig, ShowTrig,IsPythag, ShowPythag, MySin1, ShowSine
6 10/2, 10/3 Lab 6   loopPattern.txt, vectorQuery.m, sequence.m rollDice.m,
7 10/10 (attendance optional) Sec 7   myDeterminant, myDeterminantLoop, findInMatrix, scriptRWStatistics, RandomWalk2D, BoundedRandomWalk2D, scriptBoundedRWStatistics
8 10/16, 10/17 Lab8   Non-vectorized version, vectorized version  
9 10/23, 10/24 Sec 9   rComplement, rCompBulk, countPattern, countPattern2
10 10/30, 10/31 Lab10   DispCards, MyShuffle, ShowMyShuffle, Cut3, ShowCut3 (CheckCycle just for fun)  
11 11/6, 11/7 Sec 11   MakeSquare, ShowMakeSquare, Interval
12 11/13, 11/14 Lab12 Interval.m, intervalArray.m, LocalWeather.m, ithacaWeather.txt Interval, isInRange,
13 11/20,11/21 (attendance optional) Sec 13   Power
14 11/27, 11/28 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.