


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A university project for computer science students where they are required to implement the prioritylist abstract data type (adt) using two different data structures: arrayprioritylist and linkedprioritylist. The project goals include understanding how generic classes store collections, using exceptions to handle invalid arguments, and implementing interfaces. The prioritylist interface, instructions for writing the arrayprioritylist class, and testing guidelines.
Typology: Study Guides, Projects, Research
1 / 4
This page cannot be seen from the preview
Don't miss anything!



/**
/**
/**
@Test public void testGetters() { // Arguments: 1. Movie Title 2. Star Rating from 1.. Movie m1 = new Movie("The Matrix Revolutions", 4); Movie m2 = new Movie("The Lord of the Rings, Return of the King", 5); Movie m3 = new Movie("Click", 2);
assertEquals ("The Matrix Revolutions", m1.getTitle()); assertEquals ("The Lord of the Rings, Return of the King", m2.getTitle()); assertEquals ("Click", m3.getTitle());
assertEquals ("The Matrix Revolutions ****", m1.toString()); assertEquals ("The Lord of the Rings, Return of the King *****", m2.toString()); assertEquals ("Click **", m3.toString()); }
5. Submit to Web-Cat
Submit this to Project ArrayPriorityList and work with it until you have 100% code coverage and
100% problem coverage (no style points count).
6. Optional: Run a GUI that uses your ArrayPriorityList
Once you have finished a class that implements PriorityList
program that has a graphical user interface. Get this file into your project http://www.cs.arizona.edu/classes/cs227/spring09/projects/PriorityListGUI.java
Grading Criteria (50 points, subject to change)
____+35 Web-Cat correctness and code coverage: To get 100 points, you will need 100% code coverage
and 100% problem coverage (Rick's tests pass and you exercised all methods). These 100 points are
derived from Web-Cat. You may submit as many times as you wish until you have 100% on both. Notice
that a multiplication feature is employed that means 90% code coverage and 90% problem coverage
results in 0.9 * 0.9 * 100 81/100 points. This is only 81% rather than 90%.
____+15 You used an array data structure for ArrayPriorityList
using an existing Java class.