Lab 6
The following exercises are to be completed during lab class. If you
do not have time to finish during lab, they must be completed before the beginning
of the following lab session. You will turn in the lab gradesheet
at the beginning of the following lab.
Before beginning the exercises, copy this lab's folder from the T: drive to
your H: drive.
- Complete exercise 4.14 on page 210 of your textbook.
Your methods should be in a robot class named GoBot.
NOTES: Your methods should work regardless of where in the city your GoBot
is (positive or negative streets and avenues).
You must call your goTo method in your goToOrigin method!
Also write a TestGoBot.java that demonstrates that your methods
work.
- Write the HistogramBot that you designed from prelab.
(Discuss your design with your partner and come to an agreement about the
design before you start to code. Make sure you are using good step-wise refinement.)
Write a main in TestHistogramBot.java that tests the HistogramBot
class to make sure that it works correctly.
Create two different histograms in your test.
Use the windows zip utility to zip all required files into a single zip folder.
Submit the single zip folder to your lab section under project #6 using Web Submit.
NOTE: Do NOT put your files into a folder to be zipped as this will make
grading more complicated. Simply select the necessary .java files, right click,
choose Send To => Compressed (zipped) Folder.