Please enable JavaScript.
Coggle requires JavaScript to display documents.
Ch.22 Algorithm Design(1) - Coggle Diagram
Ch.22 Algorithm Design(1)
22.1 Introduction to Algorithm Design
An algorithm
sequence of steps arranged in specific logic order to generate a solution to a problem
two common methods
Pseudocode
describe an algorithm in narrative form
Floecharts
resperent an alorgithm in graphics form
22.2 Identifying Inputs and Outputs of a nProblem
usually shown in an IPO chart
Input, proccessing steps, output
22.2.1 Input and output requirements of problem
to define the requirements for the inputs and outputs of the particular problem
22.2.2 Designing a apporpriate user interface
which a high degree of user-friendliness which also looks attractive
areas:
appropriate use of colors
consistent alignment of fields
concise and appropriate use of wording
control subjects
22.3 Basic of Constants and Variable in Computer Programming
22.3.1 Constants and variables
a constant
a value that cannot be changed during tghe execution of a program
a variable
a value that may change as a program rans
22.3.2 Data types
simples data types
integer
real
character
boolean
22.3.3 Data structures
two common data structures
string
one- dimensional array
22.3.4 Relational and Logical operators
a data type od for logical data
two possible value
true
false
cannot be calculation
cannot not be mianpulated with mathematical
22.4 Logical expressions
boolean data often used in making 'Yes or No' or 'True or False' decisions
used to connect relational expressions and to operations on Boolean values