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.
  1. 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).
  2. Wait for the Windows desktop to appear and then run Internet Explorer by clicking on its desktop icon.
  3. Enter "http://www.cs.loyola.edu/~jglenn/Contest/2009" in the location bar.
  4. Follow the "Setup" link at the top of the page to bring up these instructions in Internet Explorer.
  5. 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\)
  6. Find the "lchspc09" icon on the desktop (this is the file you saved) and double-click it.
  7. 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.
  8. Close the lchspc09 window.
  9. Double-click the "Contest2009" icon on the desktop. A new window will open.
  10. Double-click the "pc2" icon in the new window.
  11. Double-click the "pc2team.bat" icon (this icon should be a picture of a gear in a window) to start the submission system.
  12. Log in with the submission system team id and password supplied at sign-in.
  13. Click "Unblock" if a message from Windows Firewall pops up.
  14. You will now have the two practice problems on your system. Return to this step once the practice session is over.
  15. Download the problems archive to C:\Documents and Settings\USERNAME\Desktop\ once the main problems are made available.
  16. Double-click the "Problems" ZIP folder on the desktop; this will open a new window.
  17. Drag "Problems" from the new window to "Contest2009" on the desktop.
  18. 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.
  1. Double-click the "jGRASP" icon on the desktop.
  2. Close any windows containing source code our students have left behind.
  3. Use the path dropdown in the left pane to select "Desktop" and then browse to "Contest2009\Problems\PROBLEM_NAME"
  4. Open a file for editing by double-clicking its name.
  5. Compile by selecting "Compile" from the "Build" menu (or by clicking the green "+" icon). Any compiler errors will be displayed in the bottom pane.
  6. 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

  1. Double-click the "eclipse" folder on the desktop.
  2. Double-click the "eclipse.exe" icon to start Eclipse; click "Run" if you get a window warning about an unknown publisher.
  3. 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.
  4. Click the "Browse" button in the "Workspace Launcher" window.
  5. Expand the "Contest2009" node at the bottom of the tree and then select "Problems" and click "OK".
  6. Click "OK" in the "Workspace Launcher" window.
  7. After several seconds, the main Eclipse window should open. Click the "Workbench" icon (the arrow at the right of the window).
  8. Select "File", "New", and "Project" from the menu bar.
  9. In the "New Project" wizard, expand the "Java" node, select "Java Project", and click "Next".
  10. 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.
  11. Right-click the "problemx" icon in the tree view in the left pane and select "Import...".
  12. Expand the "General" node, select "File System" and click "Next".
  13. 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".
  14. Check all of the .java files and then click "Browse" next to "Into folder"
  15. Expand the node for the problem you're working on and click on the "src" folder to select it, then click "OK".
  16. Click "Finish".
  17. 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.
  18. Expand "problemx" in the tree view in the left pane of the Eclipse window, then expand "src" and "default package".
  19. Double-click the .java file to open the file for editing.
  20. To run, right-click "problemx" in the tree view, select "Run As" and then "Java Application"
  21. The output of your program will appear in the pane at the bottom of the Eclipse window.
  22. When submitting your files, they will be located in C:\Documents and Settings\columbiarental1\Desktop\Contest2009\Problems\problemx\src.
  23. 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

  1. Switch to the "PC^2" window.
  2. In the "Submit" tab, select the appropriate values from the "Problem" and "Language" drop-downs.
  3. 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.
  4. Click "Submit". (The "Test" button is not configured to work.)
  5. Click "Submit" again after verifying that the information you entered was correct.
  6. 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

Valid HTML 4.01 Transitional