CH_2_Input_Processing_Output Flashcards
Program Development Cycle
- Design
- Write
- Correct Syntax Erros
- Test
- Correct Logic Errors
Logic Error
A mistake that does not prevent the program from running, but causes it to produce incorrect results. Mathematical mistakes are common logic errors.
Debug
Find and correct errors.
Two Steps of Software Design
- Understand the task that the program is to perform.
- Determine the steps that must be taken to perform the task.
Software Requirement
A single task that the program must perform in order to satisfy the customer.
Algorithm
A set of well-defined logical steps that must be taken to perform a task.
3 Types of flowchart symbols
- Ovals: Also called terminal symbols, marks the programs start and end points.
- Parallelograms: Used as input and output symbols. Represent the steps that the program uses to read inputs or display outputs.
- Rectangles: Used as processing symbols. Represent the steps in which the program performs some process on data, such as a mathematical calculation.
Note: The symbols are connected on the flowchart by ARROWSA that represent the “flow” of the program.
Function
Prewritten code that performs an operation.
String
A sequence of characters.
String Literal
A string that appears in the actual code of a program.
Multiline Strings (Python)
Strings enclosed in Triple Quotes
Comments
Notes of explanation that document lines or sections of a program. Comments are part of the program, but are ignored by the Python interpreter.
Variable
A name that represents (references) a storage location in the computer’s memory
Assignment Statement
A statement that assigns a value to a variable.
Real Number
Number with a fractional part
Exception Error
An error that occurs while the program is running.
Math Operator
A symbol that performs arithmetic on its operands.
Operand
A value of piece of data that an operator uses to perform an operation.
Named Constant
A name that represents a special value.