Lab 14 - March 18

 

To receive credit for this lab assignment, you must be finished by Friday, March 21, at 10:00 p.m. (note extended deadline)  After this time you will not receive any credit.

 

Instructions:

1.  Login to UNIX, and write a program to do the following:

Read a positive integer number from the user.

Verify that it is an integer number (positive).

Write the multiplication table for that number using a for loop.  Implement this loop in a separate method.

The multiplication table should have the following format:

n * 1 = n
n * 2 = 2n
n * 3 = 3n
n * 4 = 4n
n * 5 = 5n
n * 6 = 6n
n * 7 = 7n
n * 8 = 8n
n * 9 = 9n
n * 10 = 10n
n * 11 = 11n
n * 12 = 12n


Example:  If the user enters in the number 5, your program will print the following multiplication table:

5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
5 * 11 = 55
5 * 12 = 60
 

2.  Send an e-mail in Pine and attach your program to the e-mail.  Send to the ics111-lab@hawaii.edu account.  Make sure the subject is 'lab 14'.

3.  Check the webpage to make sure that the e-mail arrived.  Here is the URL:

4.  Once I (TA) get the e-mail in my account AND I can verify it on the web, you will receive your lab participation point.

 

Link to the Java API -  to look up any methods of any class you would like to use.