2.1.2 Flashcards
what makes a successful algorithm?
-correctness (successfully solves the problem)
-efficiency (solves the problem in the least possible time)
algorithm
a set of instructions used to solve a given problem
inputs
what is needed by the program to meet the requirements
process
what is going to happen to the inputs
output
what is displayed to the user
integer
whole number
float
decimal
string
text
boolean
true or false
what are the different types of errors?
-syntax errors
-logical errors
syntax errors
when the code does not comply with the grammatical rules of a programming language
logical errors
error in the way a program works, the program can run but doesn’t know what its expected to do
trace table
used to show how the values of a variable change during the execution of a program