Download presentation
Presentation is loading. Please wait.
1
Chapter 2 Java in 30 minutes
½ hour
2
Teaching a computer language like a logical system is possible.
Rationale Teaching a computer language like a logical system is possible. But not necessarily helpful. Everyone has studied a computer language so I can make some assumptions. Rapid introduction of the important syntax. (Feel free to interrupt with questions) Then I go over things in more detail, but I can refer to things only covered briefly and you will have least have seen them. Will assume you learn the syntax by practising. Course more about language idioms You understand what computer languages are about ½ hour
3
Primitives ½ hour
4
Variables ½ hour
5
Arithmetic ½ hour
6
Mathematical Expressions Provided by library functions Math.
Maths Mathematical Expressions Provided by library functions Math. To look at the full documentation More about libraries later tutorials documentation ½ hour
7
Documentation ½ hour
8
Mathematical Expressions Provided by library functions Math.
Maths Mathematical Expressions Provided by library functions Math. ½ hour
9
Choice ½ hour
10
Choices ½ hour
11
Again ½ hour
12
. and again ½ hour Iteration – doing something more than once
For loops often step through arrays OR “for values in measurement” Deciding not to do it continue; skips the rest of the loop and goes to the next value Finishing early break; ends the loop double[] measurements; double sum = 0.0; double average; for (int pnt=0; pnt< measurements.length;pnt++){ sum += measurements[pnt]; } average = sum/(double)measurements.length; for (double values: measurements) { sum += measurements[pnt]; } Good idiom – clear what you are doing ½ hour
13
Class.. ½ hour
14
Saying Hi ½ hour
15
In a nutshell ½ hour
16
Alone ½ hour
17
Lets talk ½ hour
18
½ hour
19
The sins of the fathers .. ½ hour
20
….. Now for the details ………………….. ½ hour
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.