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.

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

Lecture 4 More on Java® Data Types, Control Structures.
Loops –Do while Do While Reading for this Lecture, L&L, 5.7.
1 Calling within Static method /* We can call a non static method from a static method but by only through an object of that class. */ class Test1{ public.
Welcome to CodeWarmers!
More Java Syntax. Scanner class Revisited The Scanner class is a class in java.util, which allows the user to read values of various types. There are.
CS102--Object Oriented Programming Discussion 2: (programming strategy in java) – Two types of tasks – The use of arrays Copyright © 2008 Xiaoyan Li.
Unit 211 File IO Binary Files Reading and Writing Binary Files Writing Objects to files Reading Objects from files.
String Tokenization What is String Tokenization?
18 File handling1June File handling CE : Fundamental Programming Techniques.
1 CSE 142 Lecture Notes File input using Scanner Suggested reading: , Suggested self-checks: Section 6.7 # 1-11, These lecture.
Writing algorithms using the for-statement. Programming example 1: find all divisors of a number We have seen a program using a while-statement to solve.
Programming Contest problems Dr. Jeyakesavan Veerasamy CS faculty, The University of Texas at Dallas Website:
2-1 CM0551 Week 3 The scanner class – file input A Spelling Checker Time and space requirements for various dictionary structures.
1 BUILDING JAVA PROGRAMS CHAPTER 3 THE SCANNER CLASS AND USER INPUT.
Week 2 - Friday.  What did we talk about last time?  Data representation  Binary numbers  Types  int  boolean  double  char  String.
Announcements Quiz 2 Grades Posted on blackboard.
CSI 1390: Introduction to Computers TA: Tapu Kumar Ghose Office: STE 5014
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
Input & Output In Java. Input & Output It is very complicated for a computer to show how information is processed. Although a computer is very good at.
Week 2 - Wednesday.  What did we talk about last time?  Data representation  Binary numbers  Types  int  boolean  double  char  String.
NoodleBib Basics Open, Login, Create and Print Lists.
BUILDING JAVA PROGRAMS CHAPTER 6 File Processing.
Lecture 3 Decisions (Conditionals). One of the essential features of computer programs is their ability to make decisions. Like a train that changes tracks.
A Simple Java Program //This program prints Welcome to Java! public class Welcome { public static void main(String[] args) public static void main(String[]
1 BUILDING JAVA PROGRAMS CHAPTER 6 DETAILS OF TOKEN-BASED PROCESSING.
Mixing integer and floating point numbers in an arithmetic operation.
Teach.NET Workshop Series Track 4: AP Computer Science with.NET and J#
Using the while-statement to process data files. General procedure to access a data file General procedure in computer programming to read data from a.
The while-statement. Syntax and meaning of the while-statement The LOOP-CONTINUATION-CONDITION is a Boolean expression (exactly the same as in the condition.
Introduction to array: why use arrays ?. Motivational example Problem: Write a program that reads in and stores away 5 double numbers After reading in.
Files Review For output to a file: –FileOutputStream variable initialized to filename (String) and append/not append (boolean) –PrintWriter variable initialized.
Copyright 2010 by Pearson Education Building Java Programs Chapter 7 Lecture 17: Arrays for Tallying; Text Processing reading: 4.3, 7.6 (Slides adapted.
COMP 110: Spring Announcements Program 5 Milestone 1 was due today Program 4 has been graded.
CS 115 OBJECT ORIENTED PROGRAMMING I LECTURE 6_1 GEORGE KOUTSOGIANNAKIS Copyright: FALL 2015 Illinois Institute of Technology- George Koutsogiannakis 1.
File Input & Output Sections Outcomes  Know the difference between files and streams  Use a Scanner to read from a file  add “throws” annotations.
Copyright 2008 by Pearson Education Building Java Programs Chapter 3 Lecture 3-3: Interactive Programs w/ Scanner reading: self-check: #16-19.
Introduction to programming in java
Chapter 2 Clarifications
CSC111 Quick Revision.
File I/O CLI: File Input CLI: File Output GUI: File Chooser
Introduction to programming in java
Reading from a file and Writing to a file
Chapter 7 User-Defined Methods.
using System; namespace Demo01 { class Program
Introduction to Programming (CS 201)
Compiling and Running a Java Program
Building Java Programs
Strings and File I/O.
COMPUTER 2430 Object Oriented Programming and Data Structures I
Computer Programming Methodology Input and While Loop
Computer Programming Methodology File Input
TK1114 Computer Programming
Something about Java Introduction to Problem Solving and Programming 1.
Building Java Programs
Building Java Programs
Introduction to Computing Using Java
File Handling in Java January 19
CS 302 Week 13 Jim Williams, PhD.
class PrintOnetoTen { public static void main(String args[]) {
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
Lecture Notes - Week 2 Lecture-1. Lecture Notes - Week 2 Lecture-1.
A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.
CSC1401 Input and Output (with Files)
មជ្ឈមណ្ឌលកូរ៉េ សហ្វវែរ អេច អ ឌី
Building Java Programs
Building Java Programs
Building Java Programs
Building Java Programs
CIS 110: Introduction to Computer Programming
Presentation transcript:

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  1:00 – 4:00pm BHCSI Final Contest  Thursday, July 29 th  1:00 – 5:00pm

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