CS 221 Fall 2011 - Grading Sheet for Problem Set 2

Due: 23:59:59 Friday, October 21

The purpose of this assignment is to reinforce the concepts of MATLAB programming, including loops. Parts of the text relevant to this assignment are Chapter 3 and Chapter 4.

This assignment has three parts; you will submit a single "zip" archive containing your answers to all three parts. This archive should contain five files in all: divalg.m, loop.m, grades.m, hypot.m and sections.m.)

Late Submission Penalties

Late submissions will be penalized 20% per day or fraction of day. Thus if you submit at 8:00 a.m. Saturday, the maximum score you can get will be 80. If you submit at 1:00 a.m. Sunday, your max score will be 60.

General Policies

Because we have around 180 submissions to grade, it is important that you follow the instructions about what to submit and how to format it. (Note: 15 minutes grading time for each of 180 submissions = 45 hours.)

Note that you can submit an assignment to CS Portal more than once, but your submission should contain all files in a single archive. If you submit more than once, only the last submission will be scored.

Part 1: Implementing an algorithm with a while-loop

20 points for this problem. Deductions for:

Part 2: Using for-loops in MATLAB

Problem 1: 20 points total. Deductions for:

Problem 2: 20 points total. Deductions for:

Problem 3: 15 points total. Deductions for:

Part 3: Accessing Sections of Arrays

25 points for this problem: 4 points for item 1, 2.5 points each for items 2-3, and 4 points each for items 4-7.