Don Herbert, Mr. Wizard 1917-2007

Foundations of Programming: COMP 401, Spring 2008



News of the day:
Payroll program 2 is due Thursday.  Submit the entire progam (all classes) electronically.  But submit on paper only the Federal tax class and the class (either the main class or the Employee class) that calls the Federal tax calculator.


Instructor: Stephen Weiss
EMail: weiss@cs.unc.edu
Office: 159 Sitterson Hall
Office hours: M, W, 10:30-noon *
Phone: 919-962-1888
* I'm around a lot, but call before coming over.

Teaching assistants
     Mr. Catakin Constantin
    EMail: catalinc@cs.unc.edu
    Office: Sitterson Hall 024
    Office hours: T, Th 3:15-4:30
    Phone: 919-843-7417


     Mr. Joshua Markwordt
    EMail: jdmarkwo@cs.unc.edu
    Office:  Sitterson Hall 024
    Office hours: M, W, 1:00-2:00
    Phone: 919-843-7437


Class Location: Bingham 103
Recitation Location: Sitterson 011

Text Books
Stanat & Weiss (manuscript)  The book is available free on the web.  Feel free to print it out.
But it is copyrighted material. Do not distribute or sell this material.


Other Material:
             Eclipse Java system.  Available in all public labs and available free for your PC. 
           
            You should also have a Java language reference such as the COMP 110 (old number COMP 14) text.
  
            There are also Java references available on the web (see below).

Course Prerequisites:
COMP 110,116, 14, 16 or similar first level programming course.  It is ok if your first course was not it Java.

          We will spend a little time reviewing Java.  If in doubt, see the instructor right away. 
Class and Recitation Schedules
 
 
Day  Class Schedule  Recitation Schedule 
Mon

Tue 11:00-12:15
Wed

Thu 11:00-12:15
Fri
11:00 and 12:00
 
 If you cannot fit either recitation into your schedule, see the instructor.

Course links Tentative schedule (under construction)
Downloading Eclipse and related tools
Dictionary (txt file)
          Java documentation
      

Handouts                                                                                                       
   Textbook manuscript 
   Nine square puzzle
   Eight simple rules
   Factorial
   Visual sorts                                                                        
   01-General information (MS Word)                                                                     
   02-Honor code    Required reading!                                                               
   03-Syllabus (MS Word)                                                                                    
   04-Program 0 - Hello world (assignment) (MS Word)                                        
   05-Style guidelines, Part 1  (MS Word)
   06-More documentation standards
   07-Assignment 0
   08-Program Assignment 1: Self divisor
   08-Progarn Assignment 1: A nice solution
   09-Simple Java review program
   10-Class examples: Rectangle
   11-Class examples: Employee
   12-Class example: Fraction
   12-Fraction Javadoc documentation
   13-Brief Scanner tutorial
   14-Try/catch example
   15-Payroll program 1
   16-Program Assignment 2: Writing assertions
   17-Assertion examples
   18-Assertion worksheet
   19-Dutch flag algorithm
   20-Implementing assertions
   21-Chapter 2 exercises (self help)
   21-Chapter 2 exercises (answers)
   22-Chapter 3 exercises (self help)
   22-Chapter 3 exercises (answers)
   23-Binary search
   24-Chinese rings
   25-Recursion exercises (self help)
   25-Recursive exercises (answers)
   26-Reading and writing a text file
   27-JUnit example
   28-Program 3: Words
   29-Recurrance equations
   30-Program 4: Searching experiments
   31-Stopwatch class
   32-Payroll program 2
   33-Exam 1
   34-Payroll program 3
   35-Payroll program 4
   37-Linked list example
   38-Iterater example
   39-Backtrack example
   40-Program 5: The 9-square puzzle
   41-Quicksort
   42-Radix sort
   44-Tree example
   45-Finite State Machine (FSM) integer reader



To UNC-CH Home Page January 7, 2008