subject

1. 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 03:00
Which action describes an aspect of technological design?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
Answers: 2
You know the right answer?
1. write a method called listupper() that takes in a list of strings, and returns a list of the same...
Questions
question
Biology, 04.02.2021 17:20
question
Social Studies, 04.02.2021 17:20
question
Mathematics, 04.02.2021 17:20
question
Mathematics, 04.02.2021 17:20
question
Mathematics, 04.02.2021 17:20
question
Mathematics, 04.02.2021 17:20
question
Mathematics, 04.02.2021 17:20
question
Mathematics, 04.02.2021 17:20
Questions on the website: 13722360