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, 21.06.2019 17:30
Data for which there is temporarily no room in ram is diverted to where on your computer? question 9 options: a) the paging file on the hard drive b) the system file on the hard drive c) the memory file on the hard drive d) the cpu cache
Answers: 2
question
Computers and Technology, 22.06.2019 10:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
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
Mathematics, 13.11.2020 23:20
question
Mathematics, 13.11.2020 23:20
question
Social Studies, 13.11.2020 23:20
question
Chemistry, 13.11.2020 23:20
question
Mathematics, 13.11.2020 23:20
question
Physics, 13.11.2020 23:20
question
Social Studies, 13.11.2020 23:20
Questions on the website: 13722360