Question: c programming Below is the following code I have made, i am trying to make a program that takes 10 test scores and finds the

c programming

Below is the following code I have made, i am trying to make a program that takes 10 test scores and finds the average. that part is done. i do not know how to get the students entry numbers to go up by 1 with each entry. i keep getting a large number( in picture below ) i just want to know how i go from 1- 10 with student entries.

void WhileLoop()

{ int count = 0; int studentscore = 0; int studentnumber = 0; float totalscore = 0; float totalaverage = 0.0;

while ( count

while (studentscore 100)

{ printf("Error: You must enter a value between 0 and 100. Please Reenter: "); scanf("%d", &studentscore); } studentnumber++; totalscore = studentscore + totalscore; totalaverage = totalscore / 10; count++; }

printf(" The student average is: %0.2f ", totalaverage); }

 c programming Below is the following code I have made, i

Please enter a score for student 6356716 between 0 100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!