Note
Note
Note
bath processing
Mum
>Out
>
Processing -
-
tion)
-
Computer Software
computer program/program
computer software
- ·
APPLICATION
SOFTWARE
SYSTEM
SOFTWARE
Dur Replication
a
>
-
provides a convenient -y
specific
oering
a
problem environment for development
uegram
>
-
Operating system
(Windows , UNIX LINUX
,
>
-
Databaseapplication >
-
Manslator
(Ms Access)
A to
pseudocode write
② A
computer can perform arithmetic
④ A computer can
assign a value to a variable or
memory location .
⑤ A computer can
compare two variables and select one of two alternate actions .
⑧ A computer can repeat a
group
of actions -
- add
-
subtract
*
multiply
I divide
1) for parentheses
a
or
-
to represent operatin in pseudocode
used : IF
,
THEN and
ELSE
-
to companson
used : If
⑧ Example repeat a
group
of actions
-
repeat (loop)
used :
DOWHILE /ENDDO
2 .
2
Meaningful Names
-variable/identifier
-
names should be
meaningful
-
Quiz >
-
operator
condition Example
&
Is
equal to (or "is the same as" ( = int i =
1 ; (i = =
1)
same as " (
2nditional
Operators
operation
operator
Example
intj 8 ; =
NOT ↓ int i =
2 ;
( ! (ias)
Evaluate the
following Boolean expression
i
2014
I
.
2015 >=
ii . ! (12 <
6)
iii. 8 ! =
8 =
F
ir
int bS
. ,
= T
bc =
c A8( = = 6
5 6 6
T
T =
T
ControlStructureaetements
-election -
① if statement
* single-selection statement
③ switch statement
*
multiple-selection statement
#
single-selection statementconventact
Craviable # 0 . value
output
↓ ↓ Y
& PSEUDOCODE Student Grade > =
60
ENDIF
② Java code :
if (student Grade z =
60)
printin ("Passed"
(;
system . out
& Flowchart :
200
=.... else Double-selection Statement
① PSEUDOCODE
If student's grade is greater than or
equal to 60 THEN
Print "passed"
ELSE
Print "Failed"
ENDIF
is
Pseudocode statement in order performed .
② Java code :
print in "Passed" ( ;
Sightax
if (boolean expression (
statement (s) ; 11 The
else
statement (s) ; 11 False
③ Flowchart
espy
Student Grade = 60 Eee
"passed"
I T En
False
or
Display" Failed"
↓ OR
#
-
+ 1
Switch Statement (case) if (v RO v
Another of doing the if .... else statement the switch
way is
by using
command . This is a better of doing if else if it involves
way a
....
Syntax
:
Pseudocode :
E value -
1 :
Statement block - 1
break ; -
case
3 ENDCASE