ICS 111, Introduction to Computer Science
Lab 7 -
This lab will help the student by:
Instructions:
To receive credit for this lab assignment, you must be finished by
Friday, February 11, 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. Log in to UH UNIX (Secure Shell in Windows) or (Putty).
2. Create a Java file in Pico (Getting Started with Pico) that fulfills the following requirements:
- Write a Java program that will:
- Read a rectangle's base and height from the user.
- Calculate the area and the perimeter of it.
- Ask for a circle's radius from the user
- Calculate the area and the perimeter of it
- You should declare PI as a constant.
- You should have 'user friendly' interaction with your program.
- You need to write comments using the JAVA coding standard beginning this week - failure to do so will result in up to a 30% deduction from your score.
* Your program must compile without any errors, and must run properly to receive credit for this lab.
3. Get into Pine (Getting Started with Pine, PDF)
4. Attach the file to an e-mail (See pages 11-12 in Getting Started with Pine, PDF)
- control <J>, then control <T> allows you to browse and pick the file that you wish to attach. Only submit the .java file. Do not submit the .class file.
- Your e-mail should have the following subject: lab X / lastname (substitute the lab number for 'X', and lastname should be substituted for your lastname) Not following this standard will result in a deduction of points.
5. Send the file to ics111-lab@hawaii.edu account.
6. Check the webpage to make sure that the e-mail arrived. Note that this will be sent to the ICS 111 lab address (ics111-lab@hawaii.edu). This one is different from the ics111-homework@hawaii.edu. There are two different ones so we can have homework assignments and lab assignments separate.
Here are the URLs:
http://www2.hawaii.edu/~tp_200/bmf/ics111-homework.html
http://www2.hawaii.edu/~tp_200/bmf/ics111-lab.html
7. Once I (TA) get the e-mail in my account AND I can verify it works, you will receive your lab participation point. For grading policies on your lab, click here...