CS 405 Assignment 5

Cashier Average Transaction Time - Due February 25

The purpose of this assignment is to give you practice with collections.

Program Requirements

At many stores, they track how long it takes a cashier to process a customer, and this this to identify the best and the worst cashiers. Your job is to take the raw times and find the average time a cashier takes to process a customer. Your program should appear as follows.

If you enter a number in the text box and press Add Time it should add the time to the list of times you will average. Your program should work such that typing in a number and pressing the enter key enters does the same thing as pressing the Add Time button. After the enter key is pressed, if the time was valid and accepted, the text box should be cleared.

Your program should reject input that is not a number, as follows.

When the user presses the Calculate Average button, your program should display the average of all of the accepted times.

If the user presses the Calculate Average button before entering any numbers, this is an error and should get a different error message prompting the user to enter data.

Evaluation

Submission Instructions

To submit this program, I would like all students to zip their project, and send it to me. I would like you to submit the entire project, which should be named Prog_5_lastname, where lastname is your last name. For me, this is Prog_5_Wilt. Students should email their completed projects to cs405@cs.unh.edu.

Late Policy

The assignment is due prior to midnight on the listed due date. For this assignment, that means you must turn in your solution before to February 26.

Unlike other classes you may have taken in the past, no late work is allowed for this class. This is worth repeating, because it is extremely important: no late work is allowed for this class. We will move quickly, and I do not want students straggling behind trying to catch up on work from previous weeks, which is what generally happens when late work is accepted.