You are writing code using a jeroo named jamie
, who is holding a flower. Change the following if statement so that if jamie
sees water on...
Search Results
Searching for: if
Individual Exercises
You are writing code using a jeroo named jaime
. Change the following if-then-else statement to an if-then, so that jaime
does nothing if...
You are writing code using a jeroo named jaime
. Change the following if-then-else statement to an if-then (remove the else part), so that...
You are writing code using a jeroo named maria
who already has a flower. Finish writing the if-then statement below so that maria
will...
You are writing code using a jeroo named maria
. There is a mistake in the following if-then statement. Find and fix the error, so that...
You are writing code using a jeroo named amy
. Change the following if-else-if statement by adding an else
so that amy
will hop if she...
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...
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...
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 program that makes a decision and does something so that if the input is 1
the output is 0
and vice versa.
Write the code that...
Write a program that prompts the user to login, and displays appropriate messages according to whether the details are correct, partially...
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?...
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...
Given an integer array length of 1 or more, return the difference between the largest and smallest values in the array. Note that the...
Return an array that is "left shifted" by one--so for an input of {6, 2, 5, 3}, the method returns {2, 5, 3, 6}. You may modify and...
Given a binary tree, write a recursive function to return the difference between the sum of all node values at odd levels and sum of all...