Write a C++ program to calculate the average score for certain number of student
ID: 3628143 • Letter: W
Question
Write a C++ program to calculate the average score for certain number of student.Define 10 elements integer array, and sum.
Use counter controlled structure to do the following:
a. Use random generator to generate 10 integers between 0 and 100.
b. Store the integers into array
c. Add the score into sum.
Define a function to calculate the average - dividing sum by student_no. Please note that the average is float not integer.
Display the students’ scores, total points, and average (2 decimal places).
Explanation / Answer
DEAR FRIEND here s the program u want please rate #include using namespace std; int main() { int random_int[10]; double average; int sum=0; for(int i=0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.