Sei sulla pagina 1di 4

COMP 248: Lab Manual

(Revised September 9, 2018)

This guide is intended to familiarize you with the process of starting the PC2 Lab System, changing
your password, submitting a program to PC2 Lab System, and finally exiting the PC2 Lab System.

Set-up Instructions
1. Login using your ENCS login.

2. Go to the H: drive (called nettemp) on your computer and look for the COMP248 folder.

3. Copy and save on your computer the Zip file called comp248_labs.located in the COMP248 folder.
(Desktop is fine.)

4. Extract all of the files from the folder comp248_labs.

5. Locate and run (by double clicking) comp248_lab/bin/pc2team.bat. Figure 1 illustrates the
login screen which will result.

Figure 1 - Login Screen

Instruction on how to login to PC2 system (Lab system)


1. Click once on the Name box on the login screen, enter your login name. Your login name is
teamxxxxxxxx, where xxxxxxxx is your student id. If your student ID contains only 7
digits, add a 2 before (ex: 2xxxxxxx).
2. Press the TAB key or click on the Password box, to enter your password. The first time you
use the system, your password will be the same as your login name. After entering your login
name and password, click on the Login button.
3. The Main Menu screen will appear. (Figure 2.)

PC2 Lab System 1


Guide COMP248
Changing Password

If this is your first login to the Lab System, we strongly encourage you to change your password.
1. Click on the Options tab.

Figure 2 - Main Menu

2. Figure 3 illustrates the Options screen. Click on Change Password.

Figure 3 - Options screen

3. The Change Password screen will appear (see Figure 4) where you will be asked to enter
your current password and your new password twice. Once done click on OK. You will be
back at the Main Menu screen. Click on the Submit Run tab to return to the Submit Run
screen (figure 2).

Figure 4 - Change Password screen

PC2 Lab System 2


Guide COMP248
Submitting a Program
1. Once the system accepts your login, you will be at the PC2 Main Menu screen (Figure 5), shown
below. Click on the SUBMIT RUN tab near the top of the screen to display the run submission
screen, which is shown in in Figure 5.Note that the team ID (YOUR LOGIN NAME) is displayed in
the title bar, and the amount of time remaining to submit your code is below the title bar.

Figure 5 - PC2 Main Menu

2. The language in the Language box must be Java. If it is not, click in the Language box which will
display a list of the programming languages allowed. Select Java.
3. Click in the Problem box which will display a drop-down list of the lab problem; choose the
problem there (there will only be one choice). In Figure 5, the problem name is “Hello”.
4. To submit your program for marking,
a. You need to specify the name of the file containing your program (your .java file) to the PC2
Lab System. Click on the Select button to invoke the “File Dialog” which lets you locate and
select your file. The dialog lets you automatically navigate to the correct path and file
location (in Figure 5, the main program file “C:\work\Hello.java” has been selected). Select
your source code file (file with extension .java).
b. Click the Submit button. This will submit your work for marking. Your code will be tested
with 2 sets of data one of which is based on the example(s) shown in the lab handout and
one which is not shared with you.
c. Do not click on the Test button – It does not work.

 Remember: When submitting your solution to the lab system, make sure there is no package
statement at the top of your .java file as this will result in a grade of 0 (restriction of this system).

PC2 Lab System 3


Guide COMP248
5. When the Lab System finishes judging your submitted program, a Lab System’s Response
window will appear. The message after Judge’s Response will indicate if your code was correct or
if there was an issue. Here are the possible answers:
a. A green Yes means your code was error free (Figure 6)
b. A red No with an explanation of why your submission is
incorrect
i. No - Compiler error meaning you have a syntax
error (Figure 8)
ii. No - Run-time error meaning your code can’t be
executed.
iii. No - Wrong Answer meaning your code is
syntactically correct and ran, but the output generated
is not per the problem specifications. (Figure 7)
Figure 6 – Yes response from
iv. No - Undefined which usually means you are in an judge
infinite loop and your program was terminated by PC2
Lab System.

Figure 8 - Compilation Error Response from Figure 7 - Wrong Answer Response from
judge Judge

 If you have any of the red messages, fix your code in


Eclipse and resubmit to the PC2lab system.

Remember: You have one hour (your lab time) to submit


your code to the PC2 lab system. Once the time has run
out, you will see STOPPED where the timer was and the
Select and Submit buttons will be disabled by the system.
(Figure 9.)

Exiting PC2 System


Click on the Exit button at the top right corner of the PC2
Main Menu screen to terminate your PC2 session. Figure 9 - System stopped screen

PC2 Lab System 4 COMP248


Guide

Potrebbero piacerti anche