Please enable JavaScript.
Coggle requires JavaScript to display documents.
Ch.22 Algorithm design (I), Opposite - Coggle Diagram
Ch.22 Algorithm design (I)
22.1 Introduction to algorithm design
Flowchart
Pseudocode
22.2 Identifying inputs and outputs of problem
Processing step
A list of ordered processes
Output
A list of processed input
Input
A list of source data
Design an appropriate user interface(用戶界面)
Appropriate use of colours
Consistent alignment of fields
Concise and appropriate use of wording
Appropriate use of control object
Basics of constants and variables in computer programming
Constants
a value that cannot be changed during the execution(執行過程) of a program
Variable
a value that may change as a program runs
23.3 Data type
Data structures
String
Collection of characters
One-dimensional array(序列)
Collection of variable of the same data type and each variable is associated(聯繫) with an index number
it can be of many different types.
Simple data types
Real(小數):radius
Character(文字): grade(all letters)
Integer(整數): age, year, grade
Boolean:TRUE or FALSE
Relational and logical data
22.4 Selection of appropriate data types
Most data
Character (single character/ string)
Logical(Boolean)
Numeric (integer/real)
Numeric data
Account number
Mobile phone number
Opposite