170 likes | 282 Views
Programming. A project cycle. Analysis Design Implementation Testing Documentation Evaluation Maintenance. Analysis and design. Pseudo – code Structure diagram Flow chart HCI Screen layout Prompts to user Input validation. Program design. Maintainability Readability
E N D
A project cycle • Analysis • Design • Implementation • Testing • Documentation • Evaluation • Maintenance
Analysis and design • Pseudo – code • Structure diagram • Flow chart • HCI • Screen layout • Prompts to user • Input validation
Program design • Maintainability • Readability • Meaningful variable and procedure names • Internal commentary • Modularity • Blocks of code • Data flow between blocks • Parameter passing • Library (pre-defined functions)
Data types • Numeric • Text (alphanumeric) • Array
Statements Assignment of • constants • expressions • incremental expressions
Operators • Arithmetic • + , - , x , / • Comparison • = , < , > , <> • Logical • AND, OR, NOT, EOR (XOR)
Sequence The sequence is the order in which the instructions are carried out. Sometimes this is very important.
Control structures - Repetition • Fixed loop (a known number of times) • FOR / NEXT • Nested loop (a loop inside a loop) • Conditional loop ( it depends!) • REPEAT / UNTIL
Control structures - Selection • Conditional (makes a selection/decision) • IF, THEN, ELSE • CASE OF • Simple condition • Complex condition
User Interface • screen layout • prompts to user • input validation
Errors • System • Syntax • Run time • Logical
Test data • Normal, typical • Invalid/exceptional • Extreme, on limits
Evaluation • compare with agreed specification • evidence
Documentation - User • Installation guide • User guide • Reference manual
Documentation - Technical • Specification • Analysis and design • Program listing (including version ID) • Internal commentary • Test history • Evaluation