Loyola College 2009 High School Programming Contest
Loyola College >
Department of Computer Science >
Dr. James Glenn >
HS Programming Contest >
Programming Environment
Initial Setup for Windows
Follow these steps to log on to the computers and to extract the contest
problems and software to a Contest2009 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 (this is not the same as
the submission system username and password).
- Wait for the Windows desktop to appear and then run Internet Explorer
by clicking on its desktop icon.
- Enter "http://www.cs.loyola.edu/~jglenn/Contest/2009" 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 to the desktop (the full path will be
C:\Documents and Settings\columbiarental1\Desktop\)
- Find the "lchspc09" icon on the desktop (this is the file
you saved) and double-click it.
- Extract the contents of the archive by dragging the "Contest2009" icon
from the new window to the desktop. Click "Yes" if the system asks you
if you would like to move or copy.
- Close the lchspc09 window.
- Double-click the "Contest2009" 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 "Contest2009" on the desktop.
- Click "Yes to All" in the "Confirm Folder Replace" window.
jGRASP
If you have used neither jGRASP nor Eclipse, we suggest that you use
jGRASP for its simpler interface. It is also less resourse intensive, so
works better on older machines.
- Double-click the "jGRASP" icon on the desktop.
- Close any windows containing source code our students have left behind.
- Use the path dropdown in the left pane to select "Desktop" and then browse
to "Contest2009\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 the "eclipse" folder on the desktop.
- Double-click the "eclipse.exe" icon to start Eclipse; click "Run"
if you get a window warning about an unknown publisher.
- 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 "Contest2009" node at the bottom of the tree 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 "Project" from the menu bar.
- In the "New Project" wizard, expand the "Java" node,
select "Java Project", and click "Next".
- Enter "problemx" (where x is the problem number)
in the "Project name:" field and click "Finish". Click "Yes" if you get
an "Open Associated Perspective?" window.
- 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 next to "From directory"
and expand the "Contest2009" node,
the "Problems" node, and then cilck on the folder for the problem you
would like to work on and click "OK".
- Check all of the .java files and then click "Browse"
next to "Into folder"
- Expand the node for the problem you're working on and click
on the "src" folder to select it, then click "OK".
- Click "Finish".
- If there are input files for the problem, then repeat the previous
steps starting with step 11, except check all of the input (.txt) files
instead of the .java files in step 14 and select the "problemx"
node instead of the "src" node in step 15.
- 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\columbiarental1\Desktop\Contest2009\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\columbiarental1\Desktop\Contest2009\Problems\problemx
(the directory above the one with your source code).
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
(not the test driver).
These files will be in
C:\Documents and Settings\columbiarental1\Desktop\Contest2009\Problems\PROBLEM_NAME for jGRASP and
in C:\Documents and Settings\columbiarental1\Desktop\Contest2009\Problems\problemx\src for Eclipse. Click "OK" once you have
selected the correct file.
- Click "Submit". (The "Test" button is not configured to work.)
- 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.
Last updated Thu Feb 12, 2009