What loop would you use to increase the adult years once the age reaches 18?
Search Results
Searching for: while
Individual Exercises
Complete the while loop so that the variable repetition
keeps track of how many times the first character in word
is repeated in a row at...
Given a current
temperature and the desired minimum
temperature, keep increasing current
by 0.5
degrees until it has either reached or...
Write a program that prompts the user:
"How many degrees is it inside today? "
and then starting at that number entered, displays the...
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?...
Create a program that asks the user "In one word, how do you feel?\n"
and then gathers the user's response.
When the user enters either ...
The method skeleton below takes in an integer variable top
.
Using a while
loop, write a method that will return the sum of all numbers...
The method skeleton below takes in an integer variable top
.
Using a for
loop, write a method that will return the sum of all numbers from...
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, 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...