QZIA

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. 👍 0
  2. 👎 0
  3. 👁 101
asked by rami
  1. 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

    1. 👍 0
    2. 👎 0
    posted by Steve

Respond to this Question

First Name

Your Response

Similar Questions

  1. UNM

    Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard deviation of 10.3 kilograms. A. 45% of the student weights are above ____ kilograms? B. What percent of students have weights

    asked by Anonymous on February 10, 2014
  2. Java

    Need help asap. You are given a list of students' names and their test scores. Design an algorithm that does the following: a. Calculates the average test scores. b. Determines and print the names of all the students whose test

    asked by Poohboi23 on July 16, 2016
  3. MATHS

    There are 2000 students in a course. They wrote a mathematics test which was scored out of 40 and then converted to percentage. 1. Draw a flowchart that reads the name, sex and score of each student, and outputs the names of the

    asked by DAVID on May 23, 2017
  4. Math

    There are 2000 students in a course. They wrote a mathematics test which was scored out of 40 and then converted to percentage. 1. Draw a flowchart that reads the name, sex and score of each student, and outputs the names of the

    asked by Hilya on May 21, 2017
  5. Math for IT

    There are 2000 students in a course. They wrote a mathematics test which was scored out of 40 and then converted to percentage. 1. Draw a flowchart that reads the name, sex and score of each student, and outputs the names of the

    asked by binjamini zahuna on May 24, 2017
  6. math for IT

    there are 2000 students in a course . they wrote a Mathematics test which was scored out of 40 and then converted to percentages. Draw a flowchart that reads the names , sex and score of each student and outputs the names of the

    asked by Aletta on May 18, 2016
  7. UNM

    Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard deviation of 10.3 kilograms. What percent of students have weights greater than 80.1 kilograms?

    asked by Anonymous on February 10, 2014
  8. STATS

    Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard deviation of 10.3 kilograms. B. What percent of students have weights greater than 80.1 kilograms?

    asked by Tracy on February 10, 2014
  9. UNM

    Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard deviation of 10.3 kilograms. 45% of the students weights are above what kilograms?

    asked by Anonymous on February 10, 2014
  10. UNM

    Suppose that the average weight of students in a statistics class is 75.5 kilograms with a standard deviation of 10.3 kilograms. 42% of the students weights are above what kilograms?

    asked by Anonymous on February 10, 2014

More Similar Questions