Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

 need to modify this code:#include <stdio.h> int

 need to modify this code:<br/><br/><br/>#include &amp;lt;stdio.h&amp;gt; int

main () { /* variable definition: */ char StudentName[100]; float ExamValue, Sum, Avg; int students,exams; // Loop through 5 Students for (students=0; students &lt;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 &lt; 3; exams++) { printf (“Enter exam grade: \n”); scanf(“%f”, &amp;ExamValue); Sum += ExamValue; } Avg = Sum/3.0; printf( “Average for %s is %f\n”,StudentName,Avg); } return 0; }

To be able to input any number of students (the loop being controlled by the user input).

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"