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, 22.06.2019 10:30
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
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
Biology, 15.12.2019 11:31
question
Mathematics, 15.12.2019 11:31
question
Mathematics, 15.12.2019 11:31
Questions on the website: 13722363