ICS 111, Introduction to Computer Science
Lab 8 - Implementing an Algorithm - June 19
Instructions:
To receive credit for this lab assignment, you must be finished by
Thursday, June 19, at 11:59 p.m. After this time you will not receive any credit. Future lab assignments will be due by 11:59 p.m. on the day of the lab assignment.1. Login to UNIX
2. Create and edit a file called 'LabX.java' (substitute the lab number for X- where is the number of the lab- such as 'Lab1.java') in Pico, then compile and run the program.
- Note: Tuesday's lab will be the algorithm in pseudocode for the following, and today's lab will be the JAVA program itself.
Do the following:
- The student will read three numbers.
- In case that any user error occurs, the program should exit gracefully.
- The numbers will be printed out in the order read.
- The program will find the smallest number and print it out
- The program will find the largest number and print it out
- All the information should be validated (catch the possible NumberFormatExceptions)
- Note: If the program doesn't compile or if the program crashes you will get no credit
- Use javadoc style to write your program: Refer to the Java Coding Standard and make sure your code adheres to its rules.
3. Get into Pine and attach the file to an e-mail and send the e-mail / file to the ics111-lab@hawaii.edu account.
4. Check the webpage to make sure that the e-mail arrived.
Here is the URL:
http://www2.hawaii.edu/~tp_200/bmf/ics111-lab.html
5. 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. For grading policies on your lab, click here...
Link to the Java API - to look up any methods of any class you would like to use.
Link to the Java Coding Standard - to look up Java code formatting rules.