Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 BHCSI Programming Contests

2 Three contests Mock Contest #1  Friday, July 16 th  2:15 – 4:45pm UCF High School Online Contest  Thursday, July 22 nd  1:00 – 4:00pm BHCSI Final Contest  Thursday, July 29 th  1:00 – 5:00pm

3 Mock Contest Format Input from File Output to Screen Submission system: CJMS (written at UCF)  Link: http://cjms.ucfprogrammingteam.org/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

4 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

5 BHCSI Final Programming Contest Input from File Output to Screen Submission system: CJMS (written at UCF)  Link: http://cjms.ucfprogrammingteam.org/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

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

7 Other Changes for File Input Import  import java.io.*; Main will change slightly:  public static void main(String[] args) throws Exception {

8 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.


Download ppt "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."

Similar presentations


Ads by Google