A teacher has stored the percentage scores for eighty-six (86) students; she has the following tasks to complete: • compute and print the average score. • add an additional fourteen percent to each student’s score
input: Array[86] // scores for eighty-six (86) students
"m=(A[1]+A[2]+A[3]+...A[86])\/86" //compute the average score
for i from 1 to 86
A[i]=A[i]+14 // add fourteen percents to each student’s score
end
Output: m, A[i]
Print: m
Comments
Leave a comment