Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 15: Software development and programming (15.2 Basic programming…
Chapter 15: Software development and programming
15.1: What does a computer program look like?
Flowcharts
Pseudocode
15.2 Basic programming ideas
Natural languages
Complex machine means complex programs
The big picture: Inputs, processing and outputs
Inputs
Processing
Outputs
Which language is best?
What does a program look like in different languages?
Parts of a program
Control structures
Structures programming
sequence
Selection
Binary selection
Multi-way branching
Repetition
Pre-test
Post-test loop
For... NEXT loops
Variables
Declaring variables
Initialising variables
15.3 Data types
Characters
Strings
Integers
Real numbers
Boolean
Date and time
15.4 Operators and assignment statements
Operators
Arithmetic operators
Relational operators
Logical operators
Concatenation
Assignment statements
Example 1: Assigning specific value to a variable
Example 2: Incrementing a variable
Example 3: Subtraction
Example 4: Multiple calculations
15.11 Testing program code and detecting errors
Unit testing
error detection
Syntax errors
Run-time errors
Logical errors