ASSIGNMENT 2      

Include as a comment at the beginning of your source code: Name, Class (either MW or TTh), and Assignment  number.

Add comments to clarify things which may not be immediately obvious but do not comment the obvious.

In a single email to pegramitp120@gmail.com, use attachments for each java file below (one file per exercise).

Ex 1.

Write an application using a while loop that would display your name x times, where x is the number of letters in your first name, each one on a separate line. The name can either be "hard coded" into the program or can be entered at the console -- your choice. The number of letters in your first name may be "hard coded" into the program; it need not be detected by the program.

Ex 2.

Write an application using a while loop that displays the odd integers from 1 through 19 in increasing order. You do not need to "prove" that a number is odd.

Ex 3.

Write an application using the while loop that displays even  integers from 20 through 0 in decreasing order. You do not need to "prove" that a number is even.

Ex 4.

Write an application that would allow the user to enter the numeric grade and then display the letter grade accordingly. For example,

A for exam grades greater than or equal 90,

B for exam grades greater than or equal 80 to 89,

C for exam grades greater than or equal 70 to 79,

D for exam grades greater than or equal 60 to 69,

and F for all other grades.

DUE DATE: As specified on the schedule page.