This question was created from CMIS 102- Lab 6
This question was created from CMIS 102- Lab 6 https://www.coursehero.com/file/19880786/CMIS-102-Lab-6/
#include int main () { /* variable definition: */ char StudentName[100]; float ExamValue, Sum, Avg; int students,exams; // Loop through 5 Students for (students=0; students <5 ; students++) { // reset Sum to 0 Sum =0.0; printf(“Enter Student Name \n”); scanf(“%s”, StudentName); // Nested Loop for Exams for (exams=0; exams < 3; exams++) { printf (“Enter exam grade: \n”); scanf(“%f”, &ExamValue); Sum += ExamValue; } Avg = Sum/3.0; printf( “Average for %s is %f\n”,StudentName,Avg); } return 0; }
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
