Loyola College 2007-08 High School Programming Contest
Loyola College >
Department of Computer Science >
Dr. James Glenn >
HS Programming Contest >
Programming Environment
Initial Setup for Windows (except room 204)
Follow these steps to log on to the computers and to extract the contest
problems and software to a 2008 folder on the desktop.
- Press Control-Alt-Delete to bring up the workstation login window.
Make sure "Workstation Only" is not checked. Enter the workstation
username and password supplied at registration.
- Wait for the Windows desktop to appear and then run Internet Explorer
by clicking on its icon in the lower left corner of the screen next to the
"Start" button.
- Enter "http://gunpowder.cs.loyola.edu/~jglenn/Contest/2007_08" in
the location bar.
- Follow the "Setup" link at the top of the page to bring up these
instructions in Internet Explorer.
- Download the contest archive file; this file contains
the submission system and the practice problem code.
Save it in C:\Documents and Settings\USERNAME\Desktop\ (replace USERNAME with the workstation username from step 1; in CC271 you will also
have to add -COMPUTERNAME where the COMPUTERNAME is found on the
front edge of the desk).
- Find the "LCHSPC08" icon on the desktop (this is the file
you saved) and double-click it.
- Extract the contents of the archive by dragging the "2008" icon
from the new window to the desktop.
- Close the LCHSPC08 window.
- Double-click the "2008" icon on the desktop. A new window will
open.
- Double-click the "pc2" icon in the new window.
- Double-click the "pc2team.bat" icon (this icon should be a picture of a gear in a window) to start the submission system.
- Log in with the submission system team id and password supplied at sign-in.
- Click "Unblock" if a message from Windows Firewall pops up.
- You will now have the two practice problems on your system.
Return to this step once the practice session is over.
- Download the problems archive to C:\Documents and Settings\USERNAME\Desktop\ once the main problems are made available.
- Double-click the "Problems" ZIP folder on the desktop; this
will open a new window.
- Drag "Problems" from the new window to "2008" on the desktop.
- Click "Yes to All" in the "Confirm Folder Replace" window.
Initial Setup for Windows (Room 204)
Follow these steps to extract the contest problems and software to
the C:\Contest\2008 folder.
- Double-click the "My Computer" icon on the desktop.
A new window will open.
- Double-click the "Local Disk (C:)" icon in the new window.
- Select "File", "New", and "Folder" from the menu.
- Type "Contest".
- Download the contest archive file; this file contains
the submission system and the problem code.
Save it in the folder you just made by selecting "My Computer",
"Local Disk (C:)", and "Contest" and then clicking "Save".
- Double-click the "Contest" folder.
- Double-click the "LCHSPC08" ZIPped folder.
- Drag the "2008" folder to the "Contest" icon in the left pane
to extract it from the ZIPped folder.
- Click "Contest" in the left pane.
- Double-click the "2008" folder.
- Double-click the "pc2" folder.
- Double-click the "team_client.bat" batch file to run the submission
system.
- Click "Unblock" if a message from Windows Firewall pops up.
- You will now have the two practice problems on your system.
Return to this step once the practice session is over.
- Download the problems archive to
C:\Contest\2008 once the main problems are made available.
- Return to the C:\Contest folder by clicking the "Parent Folder" icon
(the one with an up arrow and a folder) in the menu bar twice.
- Double-click the "problems" ZIPped folder.
- Drag the "Problems" folder to "Contest" in the left pane.
- Click the parent folder icon in the menu bar.
- Drag the "Problems" folder to the "2008" folder. Click "Yes to All"
if you get a "Confirm Folder Replace" window.
-
In the instructions below, please replace all references to
C:\Documents and Settings\USERNAME\Desktop with
C:\Contest\2008
jGRASP
If you have used neither jGRASP nor Eclipse, we suggest that you use
jGRASP for its simpler interface.
- Select "All Programs", "jGRASP", and "jGRASP" from the "Start" menu.
- Close any windows containing source code our students have left behind.
- If the left pane is not showing the files in the "Temporary Student Work"
folder, use the path drop-down and select "Local Disk (C:)" and then browse
to C:\Documents and Settings\USERNAME\Desktop\
- Browse in the file list to "2008\Problems\PROBLEM_NAME"
- Open a file for editing by double-clicking its name.
- Compile by selecting "Compile" from the "Build" menu (or by clicking
the green "+" icon). Any compiler errors will be displayed in the bottom pane.
- When you are ready to test, open the test class by double-clicking its
name in the left pane (or by selecting its window if you have already opened
it)
and then select "Run" from the menu (or click the red running man icon).
The output from your code will appear in the pane at the bottom of
the jGRASP window.
Eclipse
- Double-click "My Computer" on the Desktop. A new window will open.
- Double-click "Local Disk (C:)" in the new window.
- Double-click the "eclipse" folder.
- Double-click the "eclipse.exe" icon to start Eclipse.
- A "Workspace Launcher" should appear after several seconds. If it
does not, then select "File", "Switch Workspace", and "Other" from the menu of
the Eclipse window that does appear.
- Click the "Browse" button in the "Workspace Launcher" window.
- Expand the "2008" node and then select "Problems" and click "OK"
- Click "OK" in the "Workspace Launcher" window.
- After several seconds, the main Eclipse window should open.
Click the "Workbench" icon (the arrow at the right of the window).
- Select "File", "New", and "Java Project" from the menu bar.
- Enter "problemx" (where x is the problem number)
in the "Project name:" field and click "Finish".
- Right-click the "problemx" icon in the tree view in the left pane
and select "Import...".
- Expand the "General" node, select "File System" and click "Next".
- Click the "Browse..." button and expand the "2008" node,
the "Problems" node, and then cilck on the folder for the problem you
would like to work on and click "OK".
- Click "Select All" and then "Browse".
- Expand the node for the problem you're working on and click
on the "src" folder to select it, then click "OK".
- Click "Finish".
- Expand "problemx" in the tree view in the left pane of the Eclipse window, then expand "src" and "default package".
- Double-click the .java file to open the file for editing.
- To run, right-click "problemx" in the tree view,
select "Run As" and then "Java Application"
- The output of your program will appear in the pane at the bottom of
the Eclipse window.
- When submitting your files, they will be located in
C:\Documents and Settings\USERNAME\Desktop\2008\Problems\problemx\src.
- The test driver for some problems allows you to create input files. The input files should be located in
C:\Documents and Settings\USERNAME\Desktop\2008\Problems\problemx
(the directory above the one with your source code). Any provided
input files should be moved to that directory.
Submissions
- Switch to the "PC^2" window.
- In the "Submit" tab, select the appropriate values from the
"Problem" and "Language" drop-downs.
- Click the "Select" button next to "Main File". For Java,
you should browse to the .java file that you edited for the problem.
These files will be in
C:\Documents and Settings\All Users\Desktop\2008\Problems\PROBLEM_NAME for jGRASP and
in C:\Documents and Settings\All Users\Desktop\2008\Problems\problemx\src for Eclipse. Click "OK" once you have
selected the correct file.
- Click "Submit".
- Click "Submit" again after verifying that the information you
entered was correct.
- A message window will appear verifying that you submitted an
attempt at a solution. A little while later (that is, after the
judges have examined your results), you will get a message window
giving you the results -- either "Yes" or "No". You can
see the status of your submissions on the "Runs" tab.