Assignment 3:

Find the output of the following before you start your programs.

(a) System.out.println("3 + 4");
(b) System.out.println(3 + 4);
(c) System.out.println(3 + "4");

You will write the output of each of the above cases on the e-mail message area to me.
Also, attach the java file
which will solve the problem in the "Your work" area to me
at extrapo66@yahoo.com

Exercise P1.5 on page 30

Example:  Write a program Sum that computes the sum of the first ten positive integers, 1+2+ . . . +10.

You may just have the output looked like following:

Hint: Write a program of the form
public class Sum
{
   public static void main(String[] args)
   {
      System.out.println(               );
    }
}
Critical Thinking:

How do you find the solution of the sum from 1 to 100?
According to the sum that you found before, how do you display the output format as below?

Your work:  ask CPU to find the solution for the sum from 1 to n where the n is the last two digits of your student ID.
If your student ID is "42150" then your n is 50.  So, no one in our class will have same solution for this assignment.