subject

Write a method named cheerleader that accepts two integer parameters lines and cheers and prints a series of "cheer" lines at increasing levels of indentation. the first parameter represents the number of lines of output to print, and the second represents the number of "cheers" per line. for example, the call of cheerleader(2, 4) means that you should print 2 lines of output, each containing 4 "cheers." a "cheer" is an occurrence of the word "go" in the output. neighboring cheers are separated by the word "team", so 1 cheer is printed as "go", 2 cheers as "go team go", 3 cheers are printed as "go team go team go", and so on. the lines you print should be displayed at increasing levels of indentation. the first line displayed should have no indentation, but each following line should be intended by 3 spaces more than the one before it. in other words, the 2nd line of output should beindented by 3 spaces, the 3rd line by 6 spaces, and so on. you may assume that both parameters passed your method will have values of at least 1.the following calls demonstrate your method's behavior. your method should match this output format exactly: call: cheerleader(2, 1); cheerleader(4, 3); cheerleader(2, 4); output: go gogo team go team go go team go team gogo team go team go
go team go team gogo team go team go team go go team go team go team go
method problem: for this problem, you are supposed to write a java method as described. you should notwrite a complete java class; just write the method(s) described in the problem statement.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
You know the right answer?
Write a method named cheerleader that accepts two integer parameters lines and cheers and prints a s...
Questions
Questions on the website: 13722362