For this question, we will be working with a subclass of Jeroo called CountingJeroo that tracks the number of hops it has peformed. You...
Search Results
Searching for: CS1114
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. This...
For this question, you will implement a method called hopManyAndTurn()
that could be placed in a Jeroo
subclass. This method takes in two...
For this question we will be writing attributes for a new Jeroo child class called TestingJeroo
For this question, declare a public field...
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 the TestingJeroo
class again
public class TestingJeroo extends Jeroo {...
For this question we will be working with a constructor for a the TestingJeroo
class again
public class TestingJeroo extends Jeroo {...
For this problem assume you have access to a Person class defined here:
public class Person { private double moneyInWallet; private int...
For this problem you will use this class:
public class Rectangle { private int length; private int width; public void setLength(int len)...
For this question assume you are writing a method within the following class:
public class Person { private int age; public void...
For this problem you will use this class:
public class Rectangle { private int length; private int width; public void setLength(int len)...
For this question, take a look at the Ball
class defined below.
public class Ball { private boolean isInflated; public Ball() {...
For this question, you are writing a method for a class Person
with the following constructor (which also shows the field names):
public...
If you are given three sticks, you may or may not be able to arrange them in a triangle.
For any three lengths, there is a simple test to...
A rational number is a number that can be represented as the ratio of two integers. For example, 2/3 is a rational number, and you can...
Write a method called product()
that calculates the product of three integers. Your method will need to be named product
. It will take in...
Write a method called average()
that calculates the average of three numbers. Recall that an average is calculated by adding a group of...
For this question, you will be working with the following two classes
A Weather
class and a Person
class:
public class Weather { private...
For this question, declare and instantiate a new ArrayList (you can name the variable whatever you'd like).
Then, return that ArrayList
The method below takes in a Pixel object called p
as a parameter. In the body of the method below, declare and instantiate an ArrayList...
The method below takes in two parameters: a Pixel object called p
and an ArrayList called arr
. For this method, if the ArrayList has less...
The method below takes in an ArrayList called arr, and returns that ArrayList. Before the return statement, remove the first item in the...
For this question you will be using Pixel objects and one Picture object, as described in Reading Activity 06. The following method uses...