1/23
Looks like no tags are added yet.
Algorithm
step-by-step instructions used to achieve a specific goal, often indented as it relates to CS
Program
Instructions in a programming language that explain an algorithm so precisely so that the computer can achieve specific goal
Programming Language
Language so precise and clear that a computer can understand it
Code
Instructions for a program
Statement
line of code that has some type of EFFECT that can be VERIFIED
What do parentheses indicate?
Calling/invoking the function
What are the symbols and letters within parentheses?
Argument
Operand
Symbols that an operator works on
Operator
Mathematical sign that tell interpreter to perform some mathematical operation
What is the assignment operator?
=
Semantic Error
Program has been indicated to perform the wrong behavior and MIGHT crash, sometimes called a bug (x = 4)
Assignment Statement
Causes the effect of the variable on the left taking on the value on the right
syntax error
the grammar of the code is incorrect and causes the program to crash or not run (x ←- 5)
Value
a piece of data the program can manipulate, all of these are also an expression
expression
a piece of code that generates a value
Print Statement
causes the effect of the argument being pasted out
increment
adding value to a variable
decrement
subtracting value from a variable
What does a function do within a statement?
It takes the argument within the parentheses.
ceil(x)
Math module that rounds value up
floor(x)
Math module that rounds value down
fabs(x)
Math module that takes the absolute value
factorial(x)
Math module that takes the factorial of value
fmod(x, y)
Math module for remainder of division