Procedural Programming
Compiler vs Run Time Errors
Both found in Preliminary Debugging stage of Testing
Compiler Error: Program does not run
-a syntax error
-programs does not follow the rules
Run-Time Errors: occurs while program is running
-logical/semantic error
-Produces Incorrect Result
Program Development Life Cycle
The process of creating Programs
Choosing Program Languages
Languages: Set of rules to write computer program
1. Categories:
Low Level (difficult and machine dependent)
High Level (closer to natural language)
2. Purpose:
weather forecasting, business transactions, math
3. Difficulty
BASIC is a beginner language
4.Popularity:
Java-Most popular
Python-Google, NASA
Source Code vs Object Code
Before an object can be debugged, it must be translated into executable code
Source Code: coded program before it is compiled(language translator coverts source code into machine language)
Object Code: machine language version of a program
4 Ways to Add a Sprite on Scratch
Draw and Label Scratch X,Y Grid
x:
y: ^ 180, 0, -180 v
Forever Loop (Scratch)
Broadcasting (Scratch)
Sensing Blocks (Scratch)
Frame by Frame vs Physical Simulation
Frame by frame: Draw each new image to string together into animation
Physical Simulation: tweening
Dyslexic Font
Dyslexie
Rotation, Scaling, Shear, Translation
shearing is stretching
translation is moving
rotation is rotating
scale is to make bigger or smaller
Raster to Vector Font
Raster image may be prettier, but costs money. Costs storage money.
Vector images use math to use less storage and save money.
Debugging
taking defects out of programes
Java
most popular object oriented programming language that uses bytecode
COBOL
programming language that deals with business transaction processing that has extensive moduals
Fortran
programming language that is used for math, engineering and science
Pseudocode
English like statements to outline the logic of a program
Compiler
A type of language transltor that does entire program at once
Stage
backdrop area of Scratch
Sprite
Image or character in Scratch
Augment
Change or edit
Block
A type of script divided by what those scripts do