For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private int price; private...
Searching for: io
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private int price; private...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private int price; private...
For this question you will be using FoodItem
objects and one GroceryBag
object.
public class FoodItem { private double price; private...
Finish the for loop below. This method should return an int
representing the sum of the numbers from 1 to the parameter n
. For example,...
Implement the following method so that it returns the index of the last space (" ") in the string.
For example:
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...
The method below takes in a List
called list
. You can assume this list only holds integer values. Implement the method so that it returns...
This method below currently sets the color of all of the pixels in the given Picture
to black. Modify the appropriate loop so that...
Complete the function that takes two unsigned integers and calculates the exponentiation of base
raised to the power of power
and returns...
Complete the function that receives an unsigned integer and creates a string that repeats a laugh as many times as specified by the...
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...
For this question, you will be using the Book
and Shelf
classes from the reading assignment.
Sometimes, a library will get multiple...
For this question, you will be using the Book
and Shelf
classes described in the reading assignment.
Implement the following method so...
For this question, you will be using the Book
and Shelf
classes described in the reading assignment.
Implement the following method so...
The following method takes in a ist of integers and a value
representing some number appearing in the list, perhaps multiple times.
Using...
The following method takes in a list of generic objects and returns the number of items in the list. As written, however, the method will...
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...
For this method, create and return a 10x5 array of booleans.
Create a 5x10 array of doubles and set the last location in the third row to 25.3. Return that array.
For this question create a 2D array using the sizes passed in as parameters. Use rows
as the size of the first dimension, and columns
as...
In the following method, modify the 2D array that is passed in by setting the last item in the last row to "Hello". Return the 2D array.
...The following method take in a 2D array of integers. It should set every value in the array to 10. However, currently, it is not working...
Fill in the for loops in the following method. This method needs to iterate through the 2D boolean array and set each slot in the array...