This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.


URI CSC200 Fall 2009



Instructor:
Daniel Ducharme
dducharme@cs.uri.edu
Office: Tyler 136
Wed 12-2 in the lab, or by appointment

LA:
Pankaj Ahire
pankajahire@gmail.com
Office: Tyler 136

TA:
Ben Roberts
ben@cs.uri.edu
Office: Tyler 133
by appointment


Program 1 (100 points):

Objective

The purpose of this programming assignment is to demonstrate that you know how to use functions and control flow to create a complex program.

Practical

In this programming assignment you will be finishing the implementation of a point of sale system. The programmer before managed to write some of it, but he spent most of his time on the classes and not as much time on the actual execution. Included is a example program from another company who does have a working program as to what the finished product should look like. (WARNING the included executable uses a number of Windows only commands such as system("cls") do not attempt to run on linux or Mac)

This assignment is supposed to be difficult and should be done individually. Your program must make use of functions and control flow in order to handle this task. There is starter code in the Included Files including both complete classes that will be needed and what the programmer did manage to finish of the main program.

Your program must have the following

  • An initialization mode
    • You must be able to add the default items
    • You must be able to add additional items
    • You must be able to remove items
    • You must be able to set the amount of money in the register
  • A running mode
    • You must be able to accept items and check out
    • You must be able to handle returns
    • You must be able to remove money from the register

You must hand in a hard copy of your code, as well as e-mailing me both an executable and softcopy of your code so that I can build it. Please try to avoid using linux only commands as I will be testing this on a Windows machine, but Windows commands such as system("cls") or system("pause") are fine.

Grading

  • (2 points) Your name must be at the top of the main file
  • (3 points) You must have a brief description of the program
  • (15 points) You must use a reasonable number of comments
  • (30 points) The program compiles
  • (50 points) The program executes correctly
    • (20 points) For the initialization
    • (30 points) For the running mode
  • (1-10 points ec) For extra functionality

Included Files

You will need the following files in order to write the program