Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here's another song, The Ants Go Marching, that is very similar to the This Old Man song in its repetitive structure. The ants go

image

image

Here's another song, The Ants Go Marching, that is very similar to the This Old Man song in its repetitive structure. The ants go marching one by one, hurrah, hurrah The ants go marching one by one, hurrah, hurrah The ants go marching one by one The little one stops to suck his thumb And they all go marching down to the ground The ants go marching two by two, hurrah, hurrah The ants go marching two by two, hurrah, hurrah The ants go marching two by two The little one stops to tie his shoe And they all go marching down to the ground The ants go marching three by three, hurrah, hurrah The ants go marching three by three, hurrah, hurrah The ants go marching three by three The little one stops to climb a tree And they all go marching down to the ground 1. Print out the The Ants Go Marching song and circle the repeated parts of the song. 2. In the active code window below, create a method or methods that takes parameters to print out a verse. The method(s) should be abstract enough to work for all 3 verses. Use good commenting for your methods that describe the @param. For the autograder, make sure you create a method called verse that takes 2 parameters. 3. In the main method, create an object of the class and call the method(s) you created in the last step to print out 3 verses of the song. Can you add more verses? 1 public class Song 2 { 3 1 7 3 3 Create method(s) with parameters to print out verses of the song The Ants Go Marching. https://www.lyrics.com/lyric/5526512/The+Ants+Go+Marching 2 3 4 5} Save & Run Load History } // Create at least 1 method called verse that takes 2 parameters // that can be used to print out the verses of the song The Ants Go Marching public static void main(String args[]) { Show CodeLens // Create a Song object and call its method(s) to print out // the verses of The Ants Go Marching // There should be atleast 1 method called verse that takes 2 arguments. Activity: 5.6.2.1 ActiveCode (challenge-5-6-song)

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

public class An... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intermediate Accounting

Authors: Elizabeth A. Gordon, Jana S. Raedy, Alexander J. Sannella

1st edition

978-0133251579, 133251578, 013216230X, 978-0134102313, 134102312, 978-0132162302

More Books

Students also viewed these Programming questions