Homework Grading Criteria

20 points (Satisfies all requirements - a job well done):
  • 1. Syntactically correct.
  • 2. Proper comments including name, date, assignment number and program description in opening comment, and some useful inline comments.
  • 3. Proper use of white space.
  • 4. Proper and consistent indenting.
  • 5. Descriptive variable names.
  • 6. Correct output.
  • 7. Descriptive, well formatted output.
  • 16 points (Meets general requirements with a few minor problems):
  • Lacking one or two of 2-5, 7.
  • 12 points (Serious problems):
  • Lacking more than two of 2-5, 7, or lacking 6.
  • 8 points (Extremely serious problems but demonstrates some effort and understanding):
  • Lacking 1.
  • 4 points (Shows little effort and does not represent passing work):
  • Missing many or all of above
  • Homework Assigments

    Assignment 1. Due Wednesday, January 13, 2:00 P.M.

  • 1. Copy in the program listed on page 28 exactly as shown.
  • Since not everyone has the book, look here if you need the code.
  • 2. Once it runs, edit the comment block to contain the information described in class.
  • 3. Submit using submit procedure.
  • Assignment 2. Due Friday, January 15, 2:00 P.M.

  • 1. Page 92, Programming Project #2.
  • Write a program to take two numbers as input data and display their sum, their difference, their product, and their quotient.
  • 2. Page 93, Programming Project #6.
  • Write a program that takes the length and width of a rectangular yard and the length and width of a rectangular house situated in the yard. Your program should compute the time required to cut the grass at the rate of two square feet a second.
  • Assignment 3. Due Friday, January 29, 2:00 P.M.

  • 1. Page 142, Programming Project #8.
  • Assignment 4. Due Friday , February 5, 2:00 P.M.

    Assignment 5. Due Friday , February 12, 2:00 P.M.

    Assignment 6. Due Friday, February 19, 2:00 P.M.

    Assignment 7. Due Friday, March 5, 1999 2:00 P.M.

    To help with this assignment, and if you unfamiliar with The Game of Life, you may want to play with a simulation. here;s an example: Bill Kendrick's Game of Life Simulation
    Additional Program Requirements:
    Your grid should be of size 25 by 25.  Using #define create constant macros for:
    Alive character: '*'
    Dead character: '.'
    Input file name: "/afs/cats.ucsc.edu/class/cmps012a.w99/hw7/initial"
    After each generation is displayed your program should pause and wait for the user to press return before it prints the next generation. It should also print the generation number at the top of each displayed grid, the initial configuration being generation 0. Your program should go at least as far as generation 50. A border around the grid display is optional. Test your program on the following initial array:
    Generation 0
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    ........**********.......
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    ........**********.......
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    After 24 generations this should appear as:
    Generation 24
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................
    ........**********.......
    .......************......
    ......**..*....*..**.....
    .....***..........***....
    .....***..........***....
    .....***..........***....
    .....***..........***....
    .....***..........***....
    .....***..........***....
    ......**..*....*..**.....
    .......************......
    ........**********.......
    .........................
    .........................
    .........................
    .........................
    .........................
    .........................

     

     
     
     
     
     

    Last modified: Wed Jan 20 2:00:48 PST 1999