Computers and Technology

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)
{
}

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:30, uh8hardiek
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
image
Computers and Technology, 23.06.2019 02:00, kayladgranger
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
image
Computers and Technology, 23.06.2019 21:50, Trinhphuongtran
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
Do you know the correct answer?
1. write a method called listupper() that takes in a list of strings, and returns a list of the same...

Questions in other subjects: