CS 202 - Computer Science II - Spring 2007
Project 4


Loyola College > Department of Computer Science > Dr. James Glenn > CS 202 > Projects > Project 4

Due

Monday, April 30th at 11:59pm. Projects submitted after the due date will be assessed a 20% penalty per day. Projects will not be accepted more than four days late.

Objectives

Introduction

Imagine a project aimed at understanding what makes Tipover puzzles hard. Such a project may have use for a Tipover server that collects information related to how much difficulty humans have when solving puzzles. For this project, you will create a class that can maintain that information.

Assignment

Create a class called TipoverDatabase that keeps track of players and puzzles, with the puzzles grouped by some initial estimate of their difficulty (the data gathered will help determine if those initial estimates were correct). For each player, the database will store the player's password, the list of puzzles the player has solved, the time taken to solve them, and puzzles attempted but not solved. For each puzzle, the database will record the number of players who have attempted the puzzle, the number of players who have solved the puzzle, and the average time taken by all the players who have solved the puzzle. TipoverDatabase must have the following methods and constructors.

You may add methods to the required classes, and you can create more classes as you see fit. For example, if you decide you need a list of players and the data for them, you may decide to create a Player object. Similarly, you may wish to create a Puzzle object if you decide you need a list of puzzles and the required information about those puzzles.

Grading

Advice

Submissions

Submit through e-mail the source code (.java files) for any classes you created (that should include TipoverDatabase). Submit your defense of your data structures either on paper or in the body of the e-mail message to which your code is attached.