Lectures 1-5 Flashcards
What is the five step computer programming process
- designing
- writing
- debugging/troubleshooting
- validating
- maintaining
What is programming?
Programming is a way of thinking about problem solving. It is not just writing down matlab commands
What is a computer program?
a set of instructions that performs a specified task by accepting input, processing it, and producing output. a program consists of source code and an excecutable
What are three basic constructs of programming?
- sequential construct
- decision making construct (conditional statements)
- Iterative construct (looping)
What are the rules of naming a variable?
- start with a letter
- any letter, number of underscore (no spaces or special characters)
- case sensitive
- avoid global variables
, ; \: [] () .
horizontal separator
vertical separator (also suppresses)
indicates an inclusive range of variables
defines the contents of an array
addresses specific contents of an array
when put before * / ^ performs element by element
What is good programming style?
header info
data input
data processing
data output