Using the knowledge in computational language in C++ it is possible to write a code that organizes a student's grades in some subjects
Writing the program in C++
#include<iostream.h>
#include<conio.h>
void main()
{
int i,n,sub1,sub2,sub3,sub4,totaltestscore;
cout<<"Enter the number of students : ";
cin>>n;
for(i=1;i<=n;i++)
{
cout<<" Enter the test score of subject 1 out of 100: ";
cin>>sub1;
cout<<" Enter the test score of subject 2 out of 100: ";
cin>>sub2;
cout<<" Enter the test score of subject 3 out of 100: ";
cin>>sub3;
cout<<" Enter the test score of subject 4 out of 100: ";
cin>>sub4;
totaltestscore=sub1+sub2+sub3+sub4;
if(totaltestscore>=372&&totaltestscore<=400)
cout<<" The grade of the student is : A ";
else
if(totaltestscore>=340&&totaltestscore<=371)
cout<<" The grade of the student is : B ";
else
if(totaltestscore>=280&&totaltestscore<=339)
cout<<" The grade of the student is : C ";
else
cout<<" The student fail ";
}
}
See more about C++ at brainly.com/question/19705654
#SPJ1