BHCSI Programming Contests. Three contests Mock Contest #1 Friday, July 16 th 2:15 – 4:45pm UCF...

8
BHCSI Programming Contests

Transcript of BHCSI Programming Contests. Three contests Mock Contest #1 Friday, July 16 th 2:15 – 4:45pm UCF...

Page 1: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

BHCSI Programming Contests

Page 2: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

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

Page 3: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

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

Page 4: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

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

Page 5: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

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

Page 6: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

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();

Page 7: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

Other Changes for File Input

Import import java.io.*;

Main will change slightly: public static void main(String[] args) throws Exception {

Page 8: BHCSI Programming Contests. Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd.

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.