You are writing code using a jeroo named jaime
. Change the following if-then statement's condition so that jaime
will hop only if there...
Search Results
Searching for: condition
Individual Exercises
You are writing code using a jeroo named jaime
. Change the following if-then statement's condition so that jaime
will hop only if there...
For this question you writing code for named erin
. Change the if statement to a while loop so that erin
will continue turning left until...
A Jeroo
named pat
is at the jeroo olympics to cheer on two friends competing in the high jump. These jeroos can jump super high....
A Jeroo
named pat
only wakes up and hops when it is time. Implement the following method called wakeUp()
that takes pat
, two integers,...
A Jeroo
named pat
is hosting a party for the other jeroos on the island. A jeroo party will be a huge success when the number of flowers...
Implement the following method so that it returns the index of the last space (" ") in the string.
For example:
- If we call this method...
Say that a "character clump" in a string is a series of 2 or more adjacent copies of the same character. Return the number of character...
Implement the following method so that it counts the number of times the target
character appears in the given string and returns the...
Write a function in Python that implements the following logic: Given 2 int values a and b greater than 0, return whichever value is...
Write a function in Python that implements the following logic: The squirrels in Palo Alto spend most of the day playing. In particular,...
You have a green lottery ticket with three integers: a, b, and c. If all of the numbers are different on it, return 0. If two of the...
You have a green lottery ticket with three integers: a, b, and c. If all of the numbers are different on it, return 0. If two of the...
Below is some code your co-worker implemented, but they're asking you for help because it's not working the way they want it to.
The code...
You notice some co-worker's code is both not working and is overly complicated.
The code should act in the following way:
- if value is ...
Below is some code your co-worker implemented, but they're asking you for help because it's not working the way they want it to.
The code...
Below is some code your co-worker tried again to implement letter grade code, but it is still not working the way they want.
The code ...
For this question you can assume you have access to two jeroo variables. One named tom
and one named jerry
.
Change the if statement so...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
The method below takes in two parameters: a Pixel
object called p
and a List
called list
. For this method, if the list has less than 20...
The Rectangle
class below has two integer fields to store its length
and width
. The toString()
method should do the following:
- If the...