the software development process is iterative because because stages can be revisited e.g. after testing the process may return to the implementationstage to fix any programmingerrors, or the designstage to fix any designerrors.
analysis functionalrequirements
inputs
process
outputs
what is the process
transforms any data from inputs into output information
characters
singular letters - ‘a’ ‘b’ ‘c’
strings
multiple letters together - ‘skibidi’, ‘toilet’
integer
numbers - 1, 100
real
not a full integer - 1.23
boolean
true or false
1Darrays
allows programmers to store data in a list
structurediagrams
graphically show the steps needed to solve a problem and must be read from 1-6
structure diagram example
flowcharts
designing the steps of a program graphically
flowcharts example
pseudocode
designing the steps of a program using phrases that resemble lines of program code
pseudocode example
assignment
sets the value of a variable
arithmetic operators
+ = addition
- = subtraction
* = multiplication
/ = division
string concatenation
joining two or more strings together
logical operators
AND
OR
NOT
and
the condition will be true if both statements are true
or
the condition will be true if either one, or both of the statements are true
not
reverses the result
fixedloop
always execute a fixed number of times
conditionalloop
execute while a specific condition is being met, or until a specific condition is met
random function
returns a random number between two parameters.
round function
returns a decimal number rounded to a given number of places.
length function
returns the length of a string.
input validation
checks that the user input is acceptable.
running total
adds a list of values.
traversing an array
accesses each element from an array
syntax errors
errors in code such as spelling errors
execution errors
causes the program to crash unexpectedly.
logic error
produces unexpected results
fitness for purpose
a program is fit for purpose if it meets the requirements specification set out during the analysis phase. Specifically, the final program should match the purpose and functional requirements.
efficient code
efficient code uses less resources (processor, RAM) and executes more quickly.