ICS 111, Introduction to Computer Science
Lab 3 - Your First Applet
During last lab you shoudl have done the following:
Update your Shell in UNIX
-
Set up your Personal Home Page in UNIX
Failure to do both
the steps above will make it so you cannot do your third lab, so please be sure
they're done.
Note: 1 lab this week. Since it covers 2 lab periods it will be worth 2 points.
This lab will help the student by:
Note: The login / password that you signed up for is for using the computers in the lab this semester. Please write down your username and password and keep it in a safe place, since you will need this for every lab this semester.. This user name / password is only for gaining access to the lab computers, and has nothing to do with logging into UH UNIX.
Also, be careful and make sure that you logout from the computers when you leave the lab or other persons may see your stuff or use your account to do "bad" things.
Instructions:
To receive credit for this lab assignment, you must be finished by
Friday, January 28, 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)
- If you are in the lab, go to the Start Menu, then Programs,
and look for 'SSH Secure Shell Client'. If you're at home, a good program to use to connect to
UH UNIX
is Putty (click here to download).
The putty program is an executable and doesn't need to be installed.
- Host name is: uhunix2.its.hawaii.edu
- Your user name is the first part of your UH e-mail address.
If your UH email address is 'frank@hawaii.edu', your user name would be 'frank'.
Your password is the same as your e-mail password.
2. Create a Java file in Pico (Getting Started with Pico) that fufills the following requirements:
- Write and post a Java applet
- The applet will be a Java version of a business card.
- It should contain the following information:
- Name
- Address
- Phone number(s)
- Logo
- The logo must be a java graphic created by you.
- Your HTML page with your applet- put it in a creative location that might be hard to find. We will have no problem since you will turn in your URL to your assignment.
Technical Requirements:
Sample from Blanca: http://www2.hawaii.edu/~tp_200/ics111/material/businessCard.html
Notes: Don't forget that Java and UNIX are case sensitive. Therefore 'helloworld.java' isn't the same as 'HelloWorld.java'. Also, remember that your class name must match your file name. If your class name is 'Frank' then your filename would be 'Frank.java'. You would compile by typing 'javac2 Frank.java' and you would run the program by typing 'java2 Frank'.
* Your program must compile without any errors, and must display in a web browser 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 and .html file. Do not submit the .class file.
- Your e-mail should have the following subject: lab 3 / lastname (lastname should be substituted for your lastname) Not following this standard will result in a deduction of points.
5. After attaching the files to your email and filling in the to / subject areas, please type the URL of your assignment in the body of the email. This must begin with http://, and link to the page containing your applet. For example: http://www2.hawaii.edu/~tp_200/ics111/material/businessCard.html
6. Send the file to ics111-lab@hawaii.edu account.
7. 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
8. 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...
* Some may argue that it is easier to do this from WebMail or other e-mail programs. If you e-mail your lab / homework from anything besides Pine, it means that you're not positive that it runs / works properly in UNIX. This could result in large point deductions if your program doesn't work properly.