View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

Carole Black

Edit Carole Black here.
Vocabulary.doc
Code Magnet Arrays.doc
Regular Array vs ArrayList.doc
ArrayList API
What kind of class.doc
2008 APCS Program Rubric.xls
UML diagrams to statements.doc
Interface Statements to UMLs.doc

Binary Hexadecimal Worksheet.doc

===

Great 2D Array exercise:

Regifting Robin

Access the website http://www.regiftable.com/RegiftingRobinPopUp.html and run this application. There is a reason why Robin always “guesses” your gift. Figure out why this works.

Program this application:

1. There are starter files below. You do not need to change the Runner program. All work will be done in the RegiftRobin.java file.
2. Create an 11x9 (remember Row x Col) matrix that will populate the matrix each time with the gifts in random order
3. Use the Math.random() to create the order of the gifts
4. Make sure the “correct” gift is in the correct position each time

Starter Files:
RegiftRobin.java
RegiftRobinRunner.java

Answer Files:
Regift Robin Answer.zip

Links to this Page