Create a program that a professor can use to display a grade for any number of students. Each student's grade is based on four test scores, with each test worth 100 points. The program should total the student's test scores and then assign the appro priate grade using the information shown in Figure 8-27. Display the student's number and grade in a message, such as "Student 1's grade: AIf necessary, create a new proj ect named Introductory13 Project, and save it in the Cpp8 Chap08 folder. Enter the C++ instructions into a source file named Introductory13.cpp . Also enter appropriate comments and any additional instructions required by the compiler. Save, run, and test the program .

Create a program that a professor can use to display a grade for any number of students Each students grade is based on four test scores with each test worth 10 class=

Respuesta :

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

Ver imagen lhmarianateixeira