The circuit()
method is intended to take the distance a person has moved on a circuit (a track) and translate it into the position they...
Search Results
Searching for: boolean operators
Individual Exercises
[Based on an exercise at https://codeworkout.cs.vt.edu/]
Given an array of int
values, return true if the group of n
numbers at the start...
[Based on an exercise at https://codeworkout.cs.vt.edu/]
Write a function in Java that implements the following logic: Given a string,...
Complete this method to return the sum of the two parameters.
Create a print line that sums variable a and variable b.
create a print line that will cast integer division m as an double.
Complete this method so it prints out the remainder of the two parameters.
Complete this method so it prints out the quotient of the two parameters.
Complete this method so it prints out the product of the two parameters.
Complete this method so it prints out the difference between the two parameters.
Fill in the correct access modifier to make this method only accessible by the class it is in. Return the correct boolean that indicates...
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...
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...
Change the value at every even index in the given array to false
. For example, given the array [true, true, true, true, true]
, this...
Complete a program to encourage the user to do their chores before going to sleep. Begin by prompting the user Did you clean your room?...
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 are writing a method for a class Person
with the following constructor (which also shows the field names):
public...
Write a program that prompts the user to login, and displays appropriate messages according to whether the details are correct, partially...