Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

\'Song Lyrics\' programming assignment Write a program that prints out the lyric

ID: 3663966 • Letter: #

Question

'Song Lyrics' programming assignment Write a program that prints out the lyrics to one or several verses of your favorite song. Be sure to include at least one comment in the program. Pay attention to formatting using the following codes: line break tab " double quote ' single quote \ backslash Experiment with the different special characters to format your lyrics. There is a reference for some of these special characters in the book on page 126. Some basics of using eclipse to write your first program are at the end of chapter 1. Grading Does the program compile? If not, you will loose all the points for that problem. Is the program properly documented? (worth ~50% of the problem) Proper documentation includes: preamble with the name of the author, date of creation and brief description of the program. comments inside the code describing steps needed to be taken to accomplish the goal of the program. appropriate formatting, indentation and use of white space to make the code readable. Remember that the code is read by humans and it should be easy to read for people who were not involved in its development. Is the program correct? (worth ~50% of the problem), Make sure that your program produces results as specificed above.

Explanation / Answer

/*****************************************************
* Author:XXXXX(your name)
* Date:29/1/2015
* Program :Song lyrics experiment with double quoates,
* single quotes, tab and new line and back slash
******************************************************/
/**
*
* The java program that prints a song "Jump, Jump" with
* proper formatting with double quotes, single quotes,
* tab, new line and back slash. print to console*/
//SongFormat.java
public class SongFormat
{
   public static void main(String[] args)
   {      
       System.out.println(" \Children Song\");
       //put double quotes " for jump
       System.out.println(""Jump, Jump"");
       System.out.println("Jump, jump, jump Jim Joe");
       //put tab
       System.out.println(" Shake your head");
       //put tab
       System.out.println(" And nod your head");
       //put tab
       System.out.println(" And tap your toe.");
       //enter a new line
       System.out.print(" ");
       //put a single quote ' Round '
       System.out.println("'Round, 'round, round we go");
       System.out.println("Then you choose another partner");
       System.out.println("And you jump Jim Joe!");
      
   }//end of main method
}//end of class

-----------------------------------------------------------------------------------------------------------------------

Sample output:

        Children Song
"Jump, Jump"
Jump, jump, jump Jim Joe
   Shake your head
   And nod your head
   And tap your toe.

'Round, 'round, round we go
Then you choose another partner
And you jump Jim Joe!