Programming > Research Paper > Virginia Tech - CS 1114 CopyingJeroo.java (All)
Virginia Tech - CS 1114CopyingJeroo.java // Virginia Tech Honor Code Pledge: // // As a Hokie, I will conduct myself with honor and integrity at all times. // I will not lie, cheat, or steal, no... r will I accept the actions of those // who do. // -- Emily Ashburn (emily2000) import sofia.micro.jeroo.*; //------------------------------------------------------------------------- /** * A jeroo that traverses all locations on an island, and uses * a buddy to make a copy of any pattern of flowers it finds. * * @author Emily Ashburn (emily2000) * @version (2019.03.22) */ public class CopyingJeroo extends Jeroo { //~ Fields ................................................................ private Jeroo copier; //~ Constructor ........................................................... // ---------------------------------------------------------- /** * Creates a new CopyingJeroo object. * @param jared the copier jeroo */ public CopyingJeroo(Jeroo jared) { super(); copier = new Jeroo(10, 1, 1000); copier = jared; } //~ Methods ............................................................... // ---------------------------------------------------------- /** * Creates a new CopyingJeroo object. */ public void myProgram() { while (!(this.getGridY() == 8 && this.getGridX() == 1)) { this.scanIsland(); } } /** * Hop forward until we reach the water. */ public void hopToWater() { while (!this.seesWater(AHEAD)) { this.pickAndPlant(); this.hop(); } } /** * Go over the whole island */ public void scanIsland() ********************************** CONTINUED IN THE ATTACHMENT *********************************** [Show More]
Last updated: 1 year ago
Preview 1 out of 3 pages
Connected school, study & course
About the document
Uploaded On
Mar 20, 2021
Number of pages
3
Written in
This document has been written for:
Uploaded
Mar 20, 2021
Downloads
0
Views
189
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·