12-174
Project 2
Spring 2000
Project Due: 24 April.
Complete the following activities. You must work in pairs for the Project. You may not have more than 2 people on a team. If you cannot find a partner, I will appoint one.
All results must be put into the appropriate project folder on the cs174jb nova account.
All programs must have a heading identifying the people who worked on the project. Programs must also contain appropriate comments. See style sheets.
New suspects can be added to the collection of criminal information using the ADD command. An inquiry consists of a set of commands with respect to a single crime, at the end of which the crime is assumed to be solved. An inquiry must be completed within the execution of the program; it cannot be "saved" to finish on a subsequent execution. After an inquiry is complete, a new inquiry (the investigation of another crime) can begin. Each new inquiry starts over with the entire collection of suspects.
(Some of the labels shown in the sample input are not typed in by the user, but are only printed for clarity. For this example, the "Criminal.mf" file is empty and all the potential suspects are added by command.)
ADD Name: Quickdraw McGraw
Attributes: has a Texas accent
has a body guard
is computer literate
ADD Name: Twingun Morgan
Attributes: has a New York accent
has red hair
smokes cigars
ADD Name: Jackda Ripper
Attributes: has a body guard
bites his fingernails
carries a knife
is computer literate
ADD Name: Annie Getcher Gunn
Attributes: has a New York accent
has red hair
eats Fritos
smokes cigars
ADD Name: Slowdrawl Raul
Attributes: has a Texas accent
carries a knife
is computer literate
eats Fritos
ADD Name: Sloan de Uptake
Attributes: has a body guard
has red hair
bites his fingernails
is computer literate
INQUIRY Code Name: Bang Bang
TIP Tip Info: has a New York accent
CHECK Quickdraw McGraw
TIP Tip Info: has red hair
CHECK Annie Getcher Gunn
TIP Tip Info: eats Fritos
INQUIRY Code Name: Holdup
TIP Tip Info: has a Texas accent
CHECK Slowdrawl Raul
CHECK Sloan de Uptake
TIP Tip Info: is computer literate
INQUIRY Code Name: Tough Stuff
TIP Tip Info: bites his fingernails
PRINT
CHECK Twingun Morgan
TIP Tip Info: has a body guard
CHECK Slowdrawl Raul
TIP Tip Info: is computer literate
QUIT
This program is complicated. You must create a test plan and use test drivers (as is done in the labs). You need to execute the program more than one time.
This project must be done in a group of two people. In no circumstance may more than 2 people work in a group. There are two parts to the project. Part 1 is the basic program. This is the "C" level project. Part 2 has advanced features that you can add. Your grade will depend on how many features you add and how well they are implemented.
Requirements:
You must implement everything in part 1. The features discussed here provide a mechanism for improving your grade. The exact grade you receive depends on the difficulty of your features as well as the effectiveness and correctness of your implementation.
Regardless of which parts you complete, your project will be graded based on its design and how well implemented it is. I will examine comments and programming style. A poorly designed and commented program, even with advanced features, will receive a poor grade.
Your grade will be determined by the following criteria:
Return to Student Pages
Return to John Barr's Home Page
Last Modified: 10 March 2000
THIS PAGE MAINTAINED BY:
John Barr, Ithaca College