An algorithm to solve a problem will need to identify the input, processing and output.
•The input may be one or more values entered on the keyboard, a reading from a thermometer, speedometer etc. or a value coded within the program itself
•The processing defines the steps in the program to solve the problem e.g. calculation or a temperature rising above a specific level.
•The output may be the answer to a problem or question or the result of an action inside a program
An electronic device which takes input, processes data, and delivers output
When tackling a problem you need to think carefully about all the inputs, processes and outputs for that problem
•Inputs:
•Anything which needs to be supplied to the program so it can meet its goals.
•Often input by the user.
•Consider an appropriate variable name and data type for the input.
•Processes:
•Consider what calculations need to be performed while the program is running.
Does data need to change formats or data types
•Outputs:
•Consider what your program need to output.
•Consider what form this output need to take.
•Consider an appropriate variable name and data type for any output.
Algorithm: a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer
Flowchart: a diagram that shows the inputs, outputs and processes in an algorithms.
Process: an action that takesplace.
Pseudocode: simplified, not language specific style used to design algorithms
Examreferencelanguage: a more formal 'code like' way of writingalgorithms that is used within the examination.
Step-wise refinement: A way to help decompose problems
Structure diagram: A hierarchical diagram to decompose a problem