In Array Program Using Any Student Marks To Find: 1.Fail Count. 2.Total Marks. 3.Average. 4.If the student fails Print "No grade" or Pass print "Grade".
1.Fail Count. 2.Total Marks. 3.Average. 4.If the student fails Print "No grade" or Pass print "Grade" based on Average. 1)PROGRAM: STEPS: Step 1: Declare a marks in an array.Notation is const marks...

Source: DEV Community
1.Fail Count. 2.Total Marks. 3.Average. 4.If the student fails Print "No grade" or Pass print "Grade" based on Average. 1)PROGRAM: STEPS: Step 1: Declare a marks in an array.Notation is const marks[marks] Step 2:We wanna fail count,total, and average.so declare a global variable named let.we don't know about the fail count,total and average so, declare let fail=0,total=0,average=0. Step 3: Then declare i=0.because the first element of array is index 0. Step 4:Next write the while loop(i<5). because the array have five elements and index starting 0 to 4. Step 5:Then declare the if(marks[i]<35) Step 6:If the condition is true increase the fail count. Step 7: Increment the value of i Step 8:Print the fail count out of the while loop. Step 9:Then again open the If statement to give (fail>0). Step 10:If the condition is true,print No grade. Step 11:Else again declare i=0.because in the previous we declared i, is fails and breaks the while loop because i=5 is (i<5).false.Now i va