CSc 4630/6630 Programming Challenges


You will be given programming challanges throughout the semester, typically one each week. You are expected to do them by yourself, on your own time. You are also expected to print your work, and give it to your instructor at the beginning of the class when it is due.

To solve the challenge problem, enter the programming statements. Copy your MATLAB session and paste it into a document to turn in. This should include the ">>" prompts (or "EDU>>" prompts).


The programming challenges will be posted on a link below.

Use a monospaced font to print your solution.

Some programming challenges may require MATLAB scripts or other files. In that case, use the type command to show them. For example, if you create a file called "myexample.m", you should use the command type myexample.m to display the contents of that file to the screen.

Make sure to show enough runs of your solution to reasonably prove that it works for all cases. For example, if you have an "if" statement, you should show that it works no matter if the condition is true or false. This may not apply to some programming challenges.


This should appear at the very top of the paper you hand in. Put this information at the top-left of the page. The text in italics show where you need to make changes. You do not literally have to use italics on your printouts.

  Your Name
  CSc 4630/6630 Programming Challenge #1
  Account: your account name
  Due date: put the due date here

  Paste a log of your activity here.

Turning in your work

Turn in a hard-copy (printout) of your work. Electronic copies will not be accepted.

The printouts must be handed in at the start of class. Points may be deducted if you walk into class late, or if your assignment is not ready to hand in right away. Make sure that your printouts use a monospaced font.

Include a complete but concise log of your activity. Complete means that anyone who types in what you type will see what you report. For example, if you type disp(a) and get 6 as the response, then you must include (before this) the command that defines variable a. You should not include extraneous things. For example, you might type help diary at some point to read the documentation about the diary command. But this is extraneous unless the programming challenge specifically asks for it.

Multiple pages must be attached by staple, binder clip, paperclip, etc.

You are responsible for making the printout look professional. This means removing any extraneous or weird (non-alphanumeric) characters that might appear in the printout.


Grading for these will be very simple: we check to see that you did the work, that it is correct, and that it is on time. The grading on these programming challenges will be typically a check (full credit), a check-minus (7/10th credit), an X (half credit), or a zero (no credit). In rare cases, there might be a check-plus (full credit plus bonus points). The grader may assign other grades as he/she sees fit, such as a percentage, but this is up to the grader and may be overruled by the instructor.

To be clear, these assignments deviate from the normal policy on late work. A late programming challenge will result in a lower grade, e.g. from a check to a check minus, from a check minus to an X, or from an X to a 0.

Click here for the assignments

Copyright 2010-2016, Michael Weeks