Write an algorithm that reads the names of 10

students, their weights in kilograms, five test
scores for each student and then prints the name
of each student, his weight in pounds, and his
average test score.

1 answer

for i=1..10
read name(i),weight(i)
sum = 0
for j=1..5
read score(i,j)
sum += score(i,j)
next j
avg(i) = sum/5
next i

for i=1..10
print name(i),weight(i)*2.2,avg(i)
next i