Documents generated in the demand analysis and system design phases cannot be directly executed on the computer.ProgramAfter the design, executeCodeSo that the system needs can be truly realized.
System Analysis and Design are the beginning of program design. Practice has proved that problems in coding are mainly caused by problems in design. Therefore, we need to analyze and design before coding, and ensure the correctness and high quality of the design before coding. In the coding stage, programmers need to finish the design with high quality.
- Structured Program Design:
Method: top-down and progressive refinement.
Definition: constructs a program using only three basic control structures: sequence, selection, and loop.
- Programming Language selection:
Classification: machine language and advanced programming language.
- Programming style:
-
- Internal program document writing rules: ① Select a distinctive identifier ② appropriate annotations ③ step-by-step program Layout
- Data description is easy to understand and easy to query: ① the order of data description should be standardized ② when multiple variables in the same statement are described, they should be arranged in alphabetical order. ③ When using a complex data structure, it is best to comment out multiple statements. ④ the variable description should not be omitted. The variable type, length, storage and initialization should be correct.
-
- Statement construction should be simple and clear: ① avoid writing multiple statements in the same line ② avoid complex condition tests ③ reduce the test on the "Non" condition ④ multiple branch structures can be larger first, the possibility is lower than that of the backend. ⑤ Avoid using loop nested statements and conditional nested statements in large quantities. 6. use parentheses to make the operation order of logical or technical expressions clear and intuitive. 7. Do not create an endless loop to avoid loops that cannot be executed.
-
- Input and Output statements should be reasonable
-
- Program Efficiency meets user needs
The Software Test content is as follows: