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...
Search Results
Individual Exercises
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...
For this question you will be using Pixel objects and one Picture object, as described in Reading Activity 06. The following method uses...
For this question you will be using Pixel objects and one Picture object, as described in Reading Activity 06. In the body of this...
For this question you will be using Pixel objects and one Picture object, as described in Reading Activity 06. In the method below write...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private double price; public...
For this question you will be using FoodItem
objects and one GroceryBag
object.
Here's what the FoodItem class looks like:
public class...
The method below takes in an ArrayList called arr
. You can assume this ArrayList will only ever hold integers.
This method needs to...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private int price; private...
For this question you will be using Pixel objects and one Picture object:
Here's what the Pixel class looks like:
public class Pixel {...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private int price; private...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private int price; private...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private double price; private...
Complete the while loop so that the variable repetition
keeps track of how many times the first character in word
is repeated in a row at...
Given a current
temperature and the desired minimum
temperature, keep increasing current
by 0.5
degrees until it has either reached or...
Finish the for loop below. This method should return an int
representing the sum of the numbers from 1 to the parameter n
. For example,...
Finish the for loop below. This method should return a string containing the first n
multiples of 3 concatenated together. use a loop...
The method below should take in a string as a parameter and return an int representing the number of lower case 'a's there are in the...
The method below takes an int parameter n
. Implement the methodd so that it returns a string containing the numbers from 1 to n
...
Implement the following method so that it returns the index of the last space (" ") in the string.
For example:
- If we call this method...
For this question you will be working with a Picture
object, but you may not call getPixels()
for your loop. Instead, you will need to...
The method below takes a String
parameter called str
. Complete the method so that it returns a new string where each each character in...
The following method takes a list of strings as a parameter and returns the number of times the character 'e' appears in all of the...