IS 51 Final Study Guide

IS 51 Final Study Guide - Program Cycle Development Problem...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Program Cycle Development Problem definition o Understand and define the problem o Involves determining the programs requirements and how they can be met Program Design o Carefully determine the steps the program has to go through Design the overall structure of the code Develop the procedure o Algorithm Flowchart Pseudocode o Does not involve writing instructions for the program o Choose the interface Program Coding o Use his/her knowledge of the programming language Syntax The set of rules that determine whether a particular statement is correctly formulated Semantics The meaning of each statement Determined by what effect it will have on the program Program Correctness o Testing, Debugging, and Revising Program Documentation o Enables programmers to understand how the program functions o Involves developing good programming style that satisfies the following principals Readability
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Comments should be used to document and explain the programs code Clarity Programs should employ standard convention and should avoid programming tricks and unnecessarily obscure code Flexibility Programs should be designed and written to easily maintain and change Two Types of errors when compiling Compilation Error: syntax error o Caused by misuse of the programming language o Relatively easy to correct Log Error: semantic error o Caused by an error in the logical design of the program causing it to behave incorrectly, producing incorrect results o Cannot be detected automatically o Can only be discovered by testing o Fixing semantic error is called debugging Purpose of algorithm Coding convention Reasons for documentations Enables programmers to understand how the program functions Involves developing good programming style that satisfies the following principals o Readability Comments should be used to document and explain the programs code
Background image of page 2
o Clarity Programs should employ standard convention and should avoid programming tricks and unnecessarily obscure code o Flexibility Programs should be designed and written to easily maintain and change Literals and variables Literals – fixed values which provide a value in a program Explicit values in your code that are not assigned to variables Examples – 11 o “Hello There” o True o 3.14 Variable – A place to temporarily store data Small containers which are given a name, and filled with data in it Conventional rules when naming a variable A variable name must begin with a letter or an underscore character, not a number or another character. The remainder of the name can contain numbers and letters A variable name cannot have punctuation marks or special characters in it Avoid any of the reserved words Variable declaration A variable declaration always contains three containers: the dim statement, the variable name, and its data type o Dim intAge as integer
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
o Dim dblThrustRatio as Double
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

IS 51 Final Study Guide - Program Cycle Development Problem...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online