You are writing code using a jeroo named amy
. Change the following if-then-else statement by adding a new else-if
so that amy
will turn...
Search Results
Searching for: Java
Individual Exercises
You are writing code using a jeroo named amy
. Change the following if-else-if statement by adding a new else-if
so that amy
will turn...
You are writing code using a jeroo named amy
. Change the following if-else-if statement by changing the third part from an else
only to...
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...
You are writing code using a jeroo named jaime
. Change the following if-then statement's condition so that jaime
will hop if there is a...
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...
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...
Write a method that takes as argument an integer size
and returns an integer array of that size. The method should allocate a new array...
Write a method that takes two arguments, the first is an integer size
and the second argument, init
, is a default value to use to...
Write a method that will make a copy of an array. The method takes one parameter, orig
. The method should make a new array the same size...
Write a method that takes an argument representing an array, orig
, and returns a new array that is 50% bigger than the original one. The...
For this question we will be working with a constructor for a the TestingJeroo
class again
public class TestingJeroo extends Jeroo {...
For this question we will be working with a constructor for a new Jeroo child class called TestingJeroo
public class TestingJeroo extends...
For this question we will be writing a constructor for a new Jeroo child class called TestingJeroo
public class TestingJeroo extends...
The code below finds the largest number in an int
array. What is the growth rate, Big O(), of this method?
// Return the position of...
The code below finds a specific number in an int
array. What is the growth rate, Big O(), of this method, on average?
static int...
The code below finds a specific number in an int
array. What is the best case estimation for performance, Big O(), for this method?
...
The code below finds a specific number in an int
array. What is the worst case estimation for performance, Big O(), for this method?
...
The code below counts the number of elements that appear in duplicate in an array. Which of the folowing statements are true?
static int...
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, 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...