subject

Write a method called listupper() that takes in a list of strings, and returns a list of the same length containing the same strings but in all uppercase form. you can either modify the provided list or create a new one.

examples:

listupper(list("a", "an", "being")) -> list("a", "an", "being")
listupper(list("every", "gator", "eats")) -> list("every", "gator", "eats")
listupper( -> list()
in this format:

public list listupper(list list)
{
}

2. write a method called listsearch() that takes in a target string and a list of other strings. this method returns a (possibly shorter) list containing all of the strings from the original list that themselves contain the target string you are searching for. check for the target string as a case-sensitive substring of every member of the list. you can either modify the provided list or create a new one.

examples:

listsearch("a", list("a", "an", "being")) -> list("a", "an")
listsearch("ea", list("every", "gator", "eats")) -> list("eats")
listsearch("", list("every", "gator", "eats")) -> list("every", "gator", "eats")
listsearch("anything", -> list()
in this format:

public list listsearch(string target, list list)
{
}

3. write a method called listlength() that takes in a list of strings and returns a list of their lengths as integers. you must create a new list for your answer.

examples:

listlength(list("", "a", "ab", "abc")) -> list(0, 1, 2, 3)
listlength(list("hello world")) -> list(11)
listlength( -> list()
in this format:

public list listlength(list list)
{
}

4. given a string, return a string where every appearance of the lowercase word "is" has been replaced with "is not". the word "is" should not be immediately preceeded or followed by a letter -- so for example the "is" in "this" does not count. (note: character. isletter(char) tests if a char is a letter.)

examples:

notreplace("is test") -> "is not test"
notreplace("is-is") -> "is not-is not"
notreplace("this is right") -> "this is not right"
in this format:

public string notreplace(string str)
{
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 08:50
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
Answers: 3
You know the right answer?
Write a method called listupper() that takes in a list of strings, and returns a list of the same le...
Questions
question
Mathematics, 31.03.2020 06:10
question
English, 31.03.2020 06:10
question
Mathematics, 31.03.2020 06:11
question
Mathematics, 31.03.2020 06:12
question
Mathematics, 31.03.2020 06:13
question
Physics, 31.03.2020 06:14
question
History, 31.03.2020 06:18
Questions on the website: 13722361