This method takes an ArrayList of integers as a parameter and does not return anything. The method will expand the list with a mirrored...
Search Results
Individual Exercises
This method takes an ArrayList of integers as a parameter and does not return anything. The method will remove all of the odd elements in...
This method takes an ArrayList of integers as a parameter and does not return anything. The method will repeat each odd element in the...
What loop would you use to increase the adult years once the age reaches 18?
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 writing code for named erin
. Change the if statement to a while loop so that erin
will continue turning left until...
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...
For this question you will be working with a Picture
object, but you may not call getPixels()
for your loop. Instead, you will need to...
The method below takes a String
parameter called str
. Complete the method so that it returns a new string where each each character in...
The following method takes a list of strings as a parameter and returns the number of times the character 'e' appears in all of the...
This method below currently sets the color of all of the pixels in the given Picture
to black. Modify the appropriate loop so that...
Implement the following method that takes a Picture
object called pic
so that it turns the bottom half of the image white. Do this using...
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...
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 ...
Complete a program to simulate an echo. It should display "Hello! \n"
five times, but using only a single cout
statement with a for loop....
Complete a program to enter and show a list of exercises.
Prompt the user with "Hello! what is your workout schedule? (say 'done' to end...
Complete the method countTimesContains
that returns the number of times the array words
contains the word stored in searchW
. Remember to...
Write a method searchInLastN
that implements a linear search but only looks for values in the last positions, determined by the parameter...