Practice Lab 1 on Program Design and Development | C SC 227, Lab Reports of Computer Science

Material Type: Lab; Class: Full Course Title: Program Design and Development; Subject: COMPUTER SCIENCE; University: University of Arizona; Term: Summer 2006;

Typology: Lab Reports

Pre 2010

Uploaded on 08/31/2009

koofers-user-g13
koofers-user-g13 🇺🇸

10 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C Sc 227 Lab 1, Summer 06 Wed, 7-June, 2006 10pts
Solo or Pair? This lab must be completed individually.
Please establish your account and complete all work in the lab on Wednesday
0. Log in and read lab usage
Use these instructions to login (also in section B #1. Logging on to Windows):
Press CTRL-ALT-DEL. The legal notice will be displayed. Read it. Click OK. This will bring up the logon
window. Enter your username and password. Then click OK. If you have problems logging on, check that
your username and password are correct and that the CSC domain is chosen (if this last option doesn’t
show, click the Options button). Check that caps lock is not on and use the digits across the top of the
keyboard, not on the keypad. The first time you logon, you will be required to change your password from
the first six (6) capitalized characters of your student ID to something else. The password you choose
should be something hard to guess. It must be at least 6 characters long and should contain at least 3 of the
4 following character groups: lower case letters, upper case letters, digits, special characters (punctuation).
Your name or username should not be part of your password. The new password will have to be entered
twice for confirmation. (Note that your Windows password and your Unix (lectura) password are two
different things. You can use the same password on both systems, in fact it is recommended, but changing
one does NOT change the other.)
1. Implement and Run a Welcome Program
Click the Eclipse Icon
Eclipse.exe
to creates a folder named workspace on your h: Drive where
you will be storing your projects, which you can later access from anywhere with ssh.
Eclipse will start and offer a Welcome page, which you should close.
While in Eclipse, select Windows > Preferences > Expand Java > Select Compiler
Change the Compiler compliance level: from 1.4 to 5
pf3
pf4
pf5

Partial preview of the text

Download Practice Lab 1 on Program Design and Development | C SC 227 and more Lab Reports Computer Science in PDF only on Docsity!

C Sc 227 Lab 1, Summer 06 Wed, 7-June, 2006 10pts

Solo or Pair? This lab must be completed individually. Please establish your account and complete all work in the lab on Wednesday

0. Log in and read lab usage

 Use these instructions to login (also in section B #1. Logging on to Windows): Press CTRL-ALT-DEL. The legal notice will be displayed. Read it. Click OK. This will bring up the logon window. Enter your username and password. Then click OK. If you have problems logging on, check that your username and password are correct and that the CSC domain is chosen (if this last option doesn’t show, click the Options button). Check that caps lock is not on and use the digits across the top of the keyboard, not on the keypad. The first time you logon, you will be required to change your password from the first six (6) capitalized characters of your student ID to something else. The password you choose should be something hard to guess. It must be at least 6 characters long and should contain at least 3 of the 4 following character groups: lower case letters, upper case letters, digits, special characters (punctuation). Your name or username should not be part of your password. The new password will have to be entered twice for confirmation. (Note that your Windows password and your Unix (lectura) password are two different things. You can use the same password on both systems, in fact it is recommended, but changing one does NOT change the other.)

1. Implement and Run a Welcome Program

 Click the Eclipse Icon Eclipse.exe to creates a folder named workspace on your h: Drive where you will be storing your projects, which you can later access from anywhere with ssh.  Eclipse will start and offer a Welcome page, which you should close.  While in Eclipse, select Windows > Preferences > Expand Java > Select Compiler  Change the Compiler compliance level: from 1.4 to 5

 Create a new project by clicking on File > New > Project  Make sure Java Project is selected, and then click Next  Name your project with a name indicating the lab# and your name: Lab1_Chris

 Once everything is typed in, save the file by going to File > Save (or Ctrl-S for short). Saving the file compiles the code into a class file and updates the error messages. Fix any errors you may have before you go on.  Next, go to Run >Run As > Java Application  At the bottom of the screen in the Console box, you should see some output that says Welcome. What is your name?  Click on the console window to the right of this prompt  Type in your name and press the enter key o If you can't input anything, try clicking on the line below the prompt as you probably typed println rather than print. The program should respond with Hi your name. I hope you are doing well!  The dialog should look like this (with a different name unless your name is Jane):

Welcome. What is your name: Jane Hello Jane! I hope you are well  Make sure you print out the file Welcome.java with File > Print > Click the Print Button

2. Implement your solution to Wholesale price

 Rick will hand back your corrected paper and pencil solution, simply retype it, run it, and make sure it works  Print out this file while in 930 GS (should have the C Sc watermark)

3. Read this Grading Criteria and hand in the hard copy of both files

____/ 2 Handed in hard copy of Welcome and it looks correct ____/ 2 Handed in hard copy of Grade Point Average and it looks correct ____/ 2 Handed in hard copy of BankAccount messages ___ / 2 You have your name in a comment at the top and a brief description of the program ___ / 2 Each file is formatted (use Ctrl+Shift+F or choose Source > Format)