Wilson’s Shipping Company charges the following rates:
Weight of Package
Rate per 500 Miles Shipped
2 pounds or less
$1.10
Over 2 lbs...
Searching for: conditionals
Wilson’s Shipping Company charges the following rates:
Weight of Package
Rate per 500 Miles Shipped
2 pounds or less
$1.10
Over 2 lbs...
Replace the /* comparison */ comment with the appropriate expression that evaluates whether the variable first
is the same size or bigger...
Replace the /* comparison */ comment with the appropriate expression that evaluates whether the variable initial is either a lowercase or...
Complete the code so that it checks if the variable letter is a lowercase vowel (a, e, i, o, or u) and assigns true or false to the...
Complete the code so that the variable polarity is -1 when adding first and second is negative, but polarity is 1 when adding first and...
Given three variables called first, second and third. If third is less than the difference of first and second, then return third....
Given three integer variables called first, second and third, if second is less than first, return false. Otherwise, check if third lies...
Add a new else if statement to the conditional below. if the jeroo named charles
sees a net ahead if it, it should run the toss method.
For this question, you have access to a Jeroo named amy
. Add in an else statement to the following cascaded if that will set the int...
For this question you can assume you have access to two jeroo variables. One named tom
and one named jerry
.
Change the if statement so...
For this question you writing code for named erin
. Change the if statement to a while loop so that erin
will continue turning until erin
...
For this question you can assume you have access to three jeroo variables. One named tom
, one named steve
, and one named jerry
.
Add in...
For this question you can assume you have access to one jeroo variable named lakin
. Add in the conditional for the following while loop....
For this question you can assume you have access to one jeroo variable named rose
. Add in the conditional for the following while loop....
For this question you can assume you have access to one jeroo variable named luan
. Add in the conditional for the following while loop....
For this question you will write a method that takes a jeroo named paige
. Write an if statement to handle the following logic.
If paige
...
For this question you will write a method that takes a jeroo named ken
. Write an if statement to handle the following logic: If ken
has a...
For this question assume you have access to a jeroo variable named emily
.
For this question, a jeroo could be facing in any direction....
For this question write the method pickAll()
. Your method is given a jeroo named katie
. Write a while loop that will continually hop and...
Using both a set of if statements and a set of while loops write code to support the following logic. For this question assume you have...
You are writing code using a jeroo named jamie
. Change the else clause so that jamie
will turn right instead of hop when there is no...
You are writing code using a jeroo named jamie
. Change the code so that jamie
will turn right if a flower is to the right, or hop...
You are writing code using a jeroo named jamie
. The following if-then-else statement will not compile because of a syntax error. Fix the...
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...
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...