Please explain this code: #include # define SIZE 30 using namespace std; int main() { int stud_test[SIZE]; int index_stud; int r1=0,r2=0,r3=0,r4=0,r5=0,r6=0,r7=0,r8=0; cout>index_stud; //input for(int...


Please explain this code:


#include


# define SIZE 30


using namespace std;


int main()


{


 int stud_test[SIZE];


 int index_stud;


 int r1=0,r2=0,r3=0,r4=0,r5=0,r6=0,r7=0,r8=0;



 cout<"please enter="" the="" number="" of="" students:="">


 cin>>index_stud;



 //input


 for(int i=0;i<>


 {


  cout<"enter the="" marks:="">


  cin>>stud_test[i];


 }



 for(int i=0;i<>


 {


  if((stud_test[i]>=0) && (stud_test[i]<=24)>


  r1=r1+1;



  else if((stud_test[i]>=25) && (stud_test[i]<>


  r2=r2+1;



  else if((stud_test[i]>=50) && (stud_test[i]<>


  r3=r3+1;



  else if((stud_test[i]>=75) && (stud_test[i]<>


  r4=r4+1;



  else if((stud_test[i]>=100) && (stud_test[i]<>


  r5=r5+1;



  else if((stud_test[i]>=125) && (stud_test[i]<>


  r6=r6+1;



  else if((stud_test[i]>=150) && (stud_test[i]<>


  r7=r7+1;



  else if ((stud_test[i]>=175) && (stud_test[i]<>


  r8=r8+1;



 }


 cout<"number of="" students="" which="" lie="" in="" 00-24:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 25-49:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 50-74:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 75-99:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 100-124:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 125-149:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 150-174:=""><><>


 cout<"number of="" students="" which="" lie="" in="" 175-200:=""><><>


}

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here