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 1/25, 1/26 Lab 1 spiral.m -
2 2/1, 2/2 Lab 2 Logical operators M1_2_5, M1_2_6, triangleType, Sticks, angle1, angle2, angle3, Conciseness & efficiency
3 2/8, 2/9 Sec 3 - Multiples, OneMill, ApproxPi
4 2/15, 2/16 Lab4 stepPyramidSkeleton.m, Fibonacci.m stepPyramid, fib, binCoef, dispFigure
5 2/22, 2/23 Sec 5   Mid3, Trig, ShowTrig,IsPythag, ShowPythag, MySin1, ShowSine
6 10/5, 10/6 Lab 6   loopPattern.txt, rollDice.m, vectorQuery.m, sequence.m
7 3/8, 3/9 Sec 7   myDeterminant, myDeterminantLoop, findInMatrix, scriptRWStatistics, RandomWalk2D, BoundedRandomWalk2D, scriptBoundedRWStatistics
8 3/15, 3/16 Lab8   Non-vectorized version, vectorized version  
9 3/29,3/30 Sec 9   rComplement, rCompBulk, countPattern, countPattern2
10 4/5, 4/6 Lab10   DispCards, MyShuffle, ShowMyShuffle, Cut3, ShowCut3, (CheckCycle just for fun,) MakeSquare, ShowMakeSquare
11 4/12, 4/13 Sec11   longLifeBulb, mat2vec, i2rc
12 4/19, 4/20 Lab12 PlayChimes.m, BigBen.wav Prob12346, Prob5
13 4/26, 4/27 Sec13   insertSortInplace, mergeSortTrace  
14 11/30, 12/1 Lab14 LargestTriangle LargestTriangleSol
15 5/11 6pm 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.