CS 680
Spring, 2003
Ethan Bolker
hw7

Due:

In this assignment you get to learn a little C++ and practice some of the design skills you've been learning all semester. You will build a small version of a trouble ticket system, like the one in use here in the department which is invoked when you send email to operator asking for system assistance.

Our ticket system has three actors: administrator, operator and submitter. Here's how your program should behave when it's all done:

% ts       // main() is in the executable ts
ts-login> administrator
	display current status of the ticket system: 
	number of tickets currently on the queue
	number of closed tickets
	return to login prompt

ts-login> operator
	if there are no tickets in the ticket queue
		report that fact
	else
		get the next ticket from the queue
		  (high priority before medium before low)
		print the ticket information
		add the ticket to the set of closed tickets
	return to login prompt

ts-login> submit
user name: eb  // user responds to prompt
priority: high // allow high, medium and low
description: whatever // any single line of text
	assign a ticket number
	put a time stamp on the ticket
	add the ticket to the ticket queue
	return to login prompt

ts-login> quit
%
When printing ticket information for the operator your program should display

Your job is to write C++ code implementing the ticket system. Here are some design tips.

Here are things you should not worry about:
Back to the CS680 home page.