Programming > Research Paper > Virginia Tech - CS 1114 CopyingJeroo.java (All)

Virginia Tech - CS 1114 CopyingJeroo.java

Document Content and Description Below

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

Reviews( 0 )

$8.50

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

GET ASSIGNMENT HELP
189
0

Document information


Connected school, study & course


About the document


Uploaded On

Mar 20, 2021

Number of pages

3

Written in

Seller


seller-icon
QuizMaster

Member since 4 years

1086 Documents Sold


Additional information

This document has been written for:

Uploaded

Mar 20, 2021

Downloads

 0

Views

 189

Document Keyword Tags

Recommended For You

What is Browsegrades

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 are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·