Program Design
Day 1
Chapter 1
1. Software: software is composed of programs and data. (The program is used to process data)
2. Development History of programming languages: 1. Machine language 2. assembly language 3. Advanced Language
The machine language is mainly composed of (0, 1 );
The assembly language is based on the machine language with an additional identifier.
Advanced Language: C language is the ancestor of a variety of advanced languages, such as Java, C ++, and javasrcipt. It is the oldest language and can also be called an intermediate language.
3. Basic methods and steps of Software Development: 1. analyze the problem and establish a mathematical model 2. Determine the data structure and algorithm 3. Compile the program 4. debug the program
Algorithms: Good algorithm standards (natural thinking)
Algorithms include: 1. Numeric algorithms 2. Non-numeric Algorithms
Basic Features of the algorithm: 1. Poorer 2. deterministic 3. Validity 4. Zero or multiple inputs 5. One or more outputs
4. Basic Structure of the flowchart: 1. Sequence Structure 2. Select structure 3. cyclic structure
5. coding implementation process: source code-target code-link compilation-executable code
6. Common Errors in debugging programs: 1. syntax errors (the software will prompt during compilation) 2. logic errors 3. Development Errors 4. runtime errors
Chapter 2:
Basic Components of programming: 1. character set (equivalent to English letters) 2. identifier (equivalent to a word in English) 3. statement (equivalent to a statement in English) 4. standard function library (equivalent to an article in English)
The identifier is divided into 1. System predefine (keyword) 2. User-Defined (can contain letters, numbers, and underscores, but cannot start with a number)
Measure the test taker's knowledge about the mian function.
C language is a process-oriented language in which the compilation process includes editing, compilation, connection, and running.
Chapter 3 (part 3)
Data Type: INTEGER (short, Int, long) floating point type (float, double, long double)
In the ascll table, a = 65, A = 97