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 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
You know the right answer?
Write a method named cheerleader that accepts two integer parameters lines and cheers and prints a s...
Questions
question
Law, 24.04.2020 21:27
Questions on the website: 13722367