Calculate Average
Learn how to insert elements into an array, and sum up all of an array's elements to calculate the average value.
We'll cover the following...
We'll cover the following...
Problem
Write a program that asks the user to enter a set of student scores (non-negative integers) and then calculates the average. The program should end when the user enters -1.
Enter scores: (enter -1 to finish):87941005674677588-1Average score : 80
Calculate average score
Purpose
Insert elements into an array ...