13 1 Computer Programming Ch.15-A,B,C FALL 2000 Rob Wolfe
13 DIT Wolfe 2 Software Engineer v. Systems Analyst Focuses on the software component of the information system Focuses on the software component of the information system Software design, programming, and testing Software design, programming, and testing Plans an entire information system Plans an entire information system Hardware, software, procedures, personnel, and data Hardware, software, procedures, personnel, and data
13 DIT Wolfe 3 Size of Programs According to DoD standards, a... According to DoD standards, a... Small program has < 100,000 lines Medium-sized program has >100,000 but < 1,000,000 lines Large program has > 1,000,000 lines
13 DIT Wolfe 4 Programming Process Problem Statement Coding per Syntax Algorithm Design
13 DIT Wolfe 5 Problem Statement Select a better deal Select a better deal Assumptions Known information Output Requirement
13 DIT Wolfe 6 Expressing an Algorithm Structured English Structured English Pseudocode Pseudocode Flow charts Flow charts Object definitions Object definitions
13 DIT Wolfe 7Debugging Syntax Errors Syntax Errors Instruction or command does not follow the syntax rules Run-time Errors Run-time Errors Shows up when you run the program. Logic Errors Logic Errors Errors in the logic or design of the program Inadequate definition of the problem Incorrect or incomplete flowchart or pseudocode More difficult and time consuming to identify
13 DIT Wolfe 8Documentation Remarks inserted in program code Remarks inserted in program code Written documentation external to the program Written documentation external to the program
13 DIT Wolfe 9 Programming in VB Three Constructs of Programming Three Constructs of Programming Sequence Selection Iteration VB Programming VB Programming VBA VBA
13 DIT Wolfe 10 Structured Programming Three Constructs Three Constructs Sequence Selection Iteration
13 DIT Wolfe 11 VB Programming Structured Programming Structured Programming Sequence, Selection, Iteration Sequence, Selection, Iteration VB 1.54 (In the Lab, Question #1) VB 1.54 (In the Lab, Question #1) VB 2.63 (In the Lab, Question #2) VB 2.63 (In the Lab, Question #2) Pizza Problem (Chapter 15) Pizza Problem (Chapter 15)