Download presentation
Presentation is loading. Please wait.
Published byEsther Nicholson Modified over 9 years ago
1
What is algorithm? the steps needed for a computer program to solve a given problem Using: Pseudo code Flow chart Or high level coding
2
Data Dictionary All programs use data, but programs which store data need to have their requirements more carefully defined. Things such as identifier names and data types have to be stored somewhere - inside a Data Dictionary.
3
Data type Numbers Hyperlink String Text Boolean Date Time Currency E-mail
4
Doing Arithmetic
5
What is arithmetic? Operators used to create expressions in Java programs that return a single resulting value
6
OperatorOperation: +Addition (and Concatenates String values) -Subtraction *Multiplication /Division %Modulus ++Increment --Decrement
7
Assigning values Operator:Example:Equivalent: =a=b +=a += ba=a+b -=a-=ba=a-b *=a *=ba=a*b /=a/=ba=a/b %=a%=ba=a%b
8
Comparing values OperatorComparison: ==equality !=inequality >Greater than >=Greater than, or equal to <Less than <=Less than, or equal to
9
EscapeDescription \nNewline \tTab \bBackspace \rCarriage return ( reset to the beginning of the line) \\Comments \’Single quote \”Double quote
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.