bhcsi programming contests. three contests mock contest #1 friday, july 16 th 2:15 – 4:45pm ucf...
TRANSCRIPT
BHCSI Programming Contests
Three contests
Mock Contest #1 Friday, July 16th
2:15 – 4:45pm
UCF High School Online Contest Thursday, July 22nd
1:00 – 4:00pm
BHCSI Final Contest Thursday, July 29th
1:00 – 5:00pm
Mock Contest Format
Input from File Output to Screen Submission system: CJMS (written at UCF)
Link: http://cjms.ucfprogrammingteam.org/
Problem Sets Intro – 6 problems (2 no loops, 4 with loops) Advanced – 4 problems (1 easier, 3 based on lectures)
Teams 2 students each, pre-chosen by staff Can use only one computer
UCF HS Online Contest Format
Input from Keyboard Output to Screen Submission system DOMjudge
Link: http://judge.ucfprogrammingteam.org/team/
Problem Set Created by UCF Programming Team members Created for students with reasonable amount of experience
Teams Individual competition
BHCSI Final Programming Contest
Input from File Output to Screen Submission system: CJMS (written at UCF)
Link: http://cjms.ucfprogrammingteam.org/
Problem Sets Intro – 8 problems (new) not yet written Advanced – 8 problems (new) not yet written
Teams 2 students each – not yet decided how teams will be chosen Can use only one computer
How to Read from a File in Java
// Opens input file.
Scanner fin = new Scanner(new File(“input.in”));
// Read each piece of information regularly.
int value = fin.nextInt();
String name = fin.next();
double cost = fin.nextDouble();
// When you are done, close the file.
fin.close();
Other Changes for File Input
Import import java.io.*;
Main will change slightly: public static void main(String[] args) throws Exception {
How to Create a Test Input File
1. Open notepad.
2. Type in file contents.
3. Click “Save As”
4. Click on “File type”
5. Click on “Save as type”
6. Choose “All Files”
7. Type in name, “problem.in” in File name box.
8. Click on Save.