AP Computer Science Test Prep Part 1 - Introduction to java Programming
-
Upload
nr-computer-learning-center -
Category
Technology
-
view
171 -
download
1
Transcript of AP Computer Science Test Prep Part 1 - Introduction to java Programming
![Page 1: AP Computer Science Test Prep Part 1 - Introduction to java Programming](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/1.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/2.jpg)
![Page 3: AP Computer Science Test Prep Part 1 - Introduction to java Programming](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/4.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/6.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/7.jpg)
Sample Program : Hello World!Program:
Output:
![Page 8: AP Computer Science Test Prep Part 1 - Introduction to java Programming](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/9.jpg)
Certificate of Completion
![Page 10: AP Computer Science Test Prep Part 1 - Introduction to java Programming](https://reader035.fdocuments.us/reader035/viewer/2022062823/5875067e1a28ab29208b6463/html5/thumbnails/10.jpg)
Register at:NR Computer Learning Center
1835 W. Orangewood Ave, #200, Orange, Ca 92868
Orwww.nrclc.com
OrCall: (714) 505-3475