CS 261 Lab F - Bead Necklaces

Due Wed Oct 08 at 3:00pm

Overview

In this assignment, you will practice using the "node and reference" structure of a LinkedList to model a necklace made up of beads of different sizes and colors. You will write a Necklace class to model this necklace as a kind of linked list of Bead objects. Your necklace will need to keep Beads organized in order (based on a provided palette's rainbow, with larger beads coming first). You should be able to add and remove Beads from the necklace while maintaining the order. An example screenshot is below:

This lab will be completed in pairs. Partner assignments for this lab can be found on Moodle

Objectives

Necessary Files

You will need to download the copy of the zipped source files. and import them into Eclipse. These files include:

You may also find it useful to look at the lecture code (available on Moodle) from yesterday!

Lab Details

Submitting

Make sure both your names are on the LetterSet class (you will be marked down if they are not). Once you're finished, upload the src code to the LabF submission folder on vhedwig. Only one partner needs to upload the code--we will only grade one partner's copy of the program. Make sure you upload your work to the correct folder! The lab is due at the start of class the day after lab.

After you have submitted your solution, log onto Moodle and submit the Lab F Partner Evaluation. Both partners need to submit evaluations.

Extensions

Try to make the bead prettier. Can you draw specular highlights on them? Give them a "shape" so we can have square beads, circular beads, polygon beads? Or even load an image to represent the bead? This is good GUI practice!

Grading

This assignment will be graded out of 17 points: