ap computer science test prep part 1 - introduction to java programming

10
NR Computer Learning Center 1835 W. Orangewood Ave . #200 . Orange . CA 92868 www.nrclc.com . (714) 505-3475 AP® Computer Science Preparation Part I: Introduction to Java

Upload: nr-computer-learning-center

Post on 10-Jan-2017

171 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: AP Computer Science Test Prep Part 1 - Introduction to java Programming

NR Computer Learning Center 1835 W. Orangewood Ave . #200 . Orange . CA

92868www.nrclc.com . (714) 505-3475

AP® Computer Science Preparation Part I:

Introduction to Java

Page 2: AP Computer Science Test Prep Part 1 - Introduction to java Programming
Page 3: AP Computer Science Test Prep Part 1 - Introduction to java Programming

Course Description This Hands-on introductory-level course enables students to learn the

basics of Java programming to build applications. This course introduces the modern programming concepts and other

design methodologies using Java. Discusses the concepts of good software design and methods. Design programs using object oriented problem solving techniques. Use the concepts of different types of structured programming. Learn to use flowchart and pseudo-code to decompose a complex

problem. Develop algorithms using different methods. This is also an excellent introductory course for students who are

planning to start a career in software development or planning to take AP Computer Science exam or preparing for Microsoft Technology Associate (MTA) Certification Exam.

Pre-requisite: Computer Basic or equivalent

Page 4: AP Computer Science Test Prep Part 1 - Introduction to java Programming

BenefitsBy the end of the course students will have learned:

The modern programming concepts and other design methodologies using Java. The concepts of good software design and methods.To design programs using Object Oriented problem solving techniques.To use flowchart and pseudo-code to decompose a complex problem.To develop algorithms using different methods.To develop software using various programming techniques.This is an excellent introductory course for students who are planning to start a career in software development or take an AP® Course in Computer Science or preparing for Microsoft Technology Associate (MTA) Certification Exam.

Page 5: AP Computer Science Test Prep Part 1 - Introduction to java Programming

TopicsIntroduction to JavaSetting up Java EnvironmentWriting Java CodeCompiling and running Java ProgramRules for writing Java CodeHeaderCommentsWarning Messages

Beginning of the programDefining VariableIntroduction to Flow ChartExamples of FlowchartingSimple and Complex StatementVariableData TypesExpressionNumerical Variable

Page 6: AP Computer Science Test Prep Part 1 - Introduction to java Programming

Mathematical OperatorsAssignment OperatorsEscape SequenceRelational OperationLogical Operators & ExpressionIf statement (If, If … else .. , If … else if …else … )The Conditional Operator “? … :”The keyword “switch”For StatementThe Comma Operator

The while statementThe do while statementThe break CommandThe continue CommandCreating an ArrayDefining an Array DimensionAssigning a value to an array elementModifying the value in an array

Topics

Page 7: AP Computer Science Test Prep Part 1 - Introduction to java Programming

Sample Program : Hello World!Program:

Output:

Page 8: AP Computer Science Test Prep Part 1 - Introduction to java Programming

public class Demo_Exception {    public static double division(int a, int b) throws ArithmeticException {       If ( b == 0 ) {          throw new ArithmeticException();       }      return (a/b);    }     public static void main(String[] args) {         int x = 50;         int y = 0;         double z = 0;       try {             z = division(x, y);             System.out.println(z);           }       catch (ArithmeticException e) {             System.out.println("Can't Divide By Zero!");           }     }}

Sample Program :Exception HandlingProgram:

Output:

Can't Divide By Zero!

Page 9: AP Computer Science Test Prep Part 1 - Introduction to java Programming

Certificate of Completion

Page 10: AP Computer Science Test Prep Part 1 - Introduction to java Programming

Register at:NR Computer Learning Center

1835 W. Orangewood Ave, #200, Orange, Ca 92868

Orwww.nrclc.com

OrCall: (714) 505-3475