Input/Output Specified
The “input” is the data that will be transformed by the algorithm to create the output
In giving an algorithm, state
- The type of data expected -- whole numbers, letter strings
- The number of data items expected
- The structure, if any, of the data expected -- a list, table, etc.
The “output” is the result of the computation -- its description often forms the name of the algorithm
The features specified are the same as for input
- The types of data forming the result
- The number of data items forming the result
- The structure of the result