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

Programming Activity 1-1 Complete Chapter 1 \"Programming Activity 1: Writing a

ID: 3780882 • Letter: P

Question

Programming Activity 1-1

Complete Chapter 1 "Programming Activity 1: Writing a First Java Application".

On a separate line, immediately after the statement that outputs the text "Programming is not a spectator sport!" add the following statement:

System.out.println("<your name> is one of its players.");

Replace <your name> by your first and last name.

Make sure you study the Programming Activity 1-1 Guidance document.

Upload your zipped assignment folder, which contains the java and class files.

Explanation / Answer

public class JavaApplication

{

public static void main(String s[])
   {

String fname, lname;

fname="Kevin"; lname="Pietersen";

// Print first line
     System.out.println("Programming is not a spectator sport!");

   // Print secondline
  System.out.println(fname+" "+lname+" is one of its players!");

}

}