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. 👁 231
  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

Respond to this Question

First Name

Your Response

Similar Questions

  1. pseudocode programming

    Develop an algorithm or write pseudocode to determine if a citizen is eligible to vote. The criteria for eligibility are that the citizen must be 18 or older and must not be a convicted felon. The algorithm must continuously

  2. English

    Choose the sentence that is written in active voice. A. The math problems were given to the students. B. The students were taking a math test. C. The math test was given by the instructor. D. The math test grades were given to the

  3. physics

    A force of 1.35 newtons is required to accelerate a book by 1.5 meters/second2 along a frictionless surface. What is the mass of the book? 0.45 kilograms 0.90 kilograms 1.35 kilograms 1.5 kilograms 1.8 kilograms

  4. Chemistry

    If 14.0 kilograms of Al2O3(s), 57.4 kilograms of NaOh(l), and 57.4 kilograms of HF(g) react completely, how many kilograms of cryolite will be produced?

  1. pseudo code algorithm

    Write a pseudo code algorithm which: • Determines the average weight of a person over a particular year. • For each month, your algorithm should input the person's weight for that month (a positive real number). Your algorithm

  2. Questions

    mr. Venn knows that 60% of his students will score no more than 5 points above or below the class average, 75%, on the test.Write an inequality that represents the test scores of 60% of his students?

  3. Business English

    Choose the sentence that is written in active voice. a) The math problems were given to the students. b) The students were taking a math test. c) The math test was given by the instructor. d) The math test grades were given to the

  4. ashford

    Mrs. Orlof teaches two history classes, one in the morning and one in the afternoon. Yesterday she gave the same test to both classes. Anyone who failed the test must take a retest. Since a greater percentage of students who took

  1. statistics

    .) A hospital in a large city records the weight of every infant born at the hospital. The distribution of weights is normally shaped, with a mea n µ= 2. 9 kilograms and a standard deviation o- = 0 .45. Determine the following:

  2. Algorithm

    write a pseudo code algorithm that will accept the marks in a test for a group of 25 students then calculate and display the average mark

  3. programming

    1. Write a structured algorithm that prompts the user to input two numbers. The algorithm should calculate and print the sum & product of the two numbers [21/2]

  4. Computer

    Write an algorithm and flowchart that will accept 30 students calculate and print the average mark in basic program.

You can view more similar questions or ask a new question.