At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Experience the ease of finding precise answers to your questions from a knowledgeable community of experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

EXERCISE 3
A student's examination scores at the end of the session
have been listed as follows: 67, 89, 56, 34, 60, 95, 43, 55,
51, 42, 77, 44, 89, 67, 81, 70, 49, 45, 54, and 62. Write a
BASIC program to read, find the sum, and calculate the
average score for the student​


Sagot :

Answer:

The BASIC program is as follows:

SUM = 0

FOR I = 1 TO 20

INPUT SCORES

SUM = SUM + SCORES

NEXT I

AVERAGE = SUM/20

PRINT AVERAGE

Explanation:

This initializes sum to 0

SUM = 0

This iterates through 20

FOR I = 1 TO 20

This reads each score

INPUT SCORES

This calculates the total scores

SUM = SUM + SCORES

NEXT I

This calculates the average

AVERAGE = SUM/20

This prints the calculated average

PRINT AVERAGE