Question
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.
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.
Answers
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
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
Related Questions
Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard...
Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard...
there are 2000 students in a course . they wrote a Mathematics test which was scored out of 40 and t...
Need help asap.
You are given a list of students' names and their test scores. Design an algorithm...