Software Design and Development
No description yet. This curated deck is ready for daily study.
Card preview (24)
Variable
Used to identify storage locations in memory. Like a memory cell within a program
Assigning a Variable a Value
variable=0/(“P”)/[0,2]
Adding
+
Subtracting
-
Multiply
*
Divide
/
Exponent
Modulo
%
Concatenation
Joining text strings together to form a new text string
Normal Programme Sequence
Input, Process, Output
If statements
Used to let a program select an action depending upon the value of variables held in the program if variable==”Party”: print (“Yay!”)
<
Less than
>
More than
<=
Less than or equal to
>=
More than or equal to
==
Equals
=!
Not equal to
And
Both sides of the operator must be true for the statement to succeed
Or
Either side of the operator must be true for the statement to succeed
Fixed Loop
The loop repeats a sequence of code a set number of times (for)
Conditional Loop
Loop keeps repeating code until a condition is met (while)
Pre-Defined Functions
Round Integer Random
Round Function
Rounds a value to a specific number of decimal places
Random Function
Returns a random number between two set values