To express the coding framework.
algorithm deviation
pre nothing
post average and numbers with their deviation printed
1 i = 0
2 loop (not end of file)
1 read number to array[i]
2 i++
3 sum = sum + number
3 end loop
4 average = sum / i
5 print (average)
6 j = 0
7 loop j < i
1 devFromAve = array[j] - average
2 print (devFromAve)
3 j++
8 end loop
9 return
end deviation