Programming Assignments

Programming Assignments have not yet been created. You will likely have a few small-to-medium size programs in 3 different languages.

Programs [Fall '07]
  1. Prolog:
    Write a program in Prolog, due Monday, 10/1, by 11:59 PM.
    The program is the Bachelor Binge problem. Note that part of the search space is given in the narrative, but some information (Tacos) is given in the chart.
    Turn in this program using the turnin command from your CS account, as follows:
          turnin -c cs476 -p program1 bachelor.pl
    where bachelor.pl is the text file with your solution to the problem.
    See solutions by Matt Hamilton and Chris Davey

  2. ML
    Write a program in ML to play the Marble Guessing Game (version shown is in Java), due Friday 11/9 by 11:59 PM. The elements in ML that you need to know (random number generator, passing along a data structure, reading user input) can be readily seen in the solution to the Tic-tac-toe program from a previous semester (see link below). You may not use arrays in this program.
    Turn in this program using the turnin command from your CS account, as follows:
          turnin -c cs476 -p program2 marbles.pl
    where marbles.pl is the text file with your solution to the problem.

  3. PHP
    See the class notes (use IE browser) for the description of the PHP assignment. Due Friday 12/7/07.


Old Programs [Fall '01]

1. First ML program: find prime numbers. A solution.
2. Second ML program: Word Search. A solution.
3. Third ML program: Tic-Tac-Toe. A solution.


[CS Dept.] [UIC] [Prof. Reed]