Write a c++ program to compute and print the grade for one student. The grade is based on three mid-term exams (worth a possible 25 points each) of which the best two are only considered in the computation, two quizzes (5 points each), and a 40 points final exam. Your output should include all scores (2 best midterms, 2 quizzes and the final exam), the percentage grade, and the letter grade. Solve it using nested if. The grading scale is: Percentage Grade (PG) Letter Grade PG >= 90% A 80% <= PG < 90% B 70% <= PG < 80% C 60% <= PG < 70% D PG < 60% F
Dear Student,
below i have written the complete CPP program as per the requirement.
==================================================================
Program:
==================================================================
//Header files
#include<iostream>
using namespace std;
//start of the main function
int main()
{
//variable declration
int midterm[3];
int quiz1, quiz2;
int index;
char grade;
int final_marks, total = 0;
//accept the three midterm marks
for(int i = 0; i<3; i++)
{
cout<<"Enter the midterm exam "<<i+1<<" marks:
";
cin>>midterm[i];
}
//initialize the min and max midterm marks
int min = midterm[0];
int max = midterm[0];
int sum = 0;
//calculate the min and max midterm marks and the sum of all the midterm marks
for(int i = 0; i<3; i++)
{
sum = sum + midterm[i];
if(midterm[i]<min)
{
min = midterm[i];
}
if(midterm[i]>max)
{
max=midterm[i];
}
}
//accpet the quiz marks
cout<<"Enter the quiz1 marks: ";
cin>>quiz1;
cout<<"Enter the quiz2 marks: ";
cin>>quiz2;
cout<<"Enter the final exam marks: ";
cin>>final_marks;
//calculate the total marks ignoring the least midterm marks
total = midterm[0] + midterm[1] + midterm[2] + quiz1 + quiz2 + final_marks - min;
//find the letter grade
if(total>=90)
{
grade='A';
}
else if(total>=80 && total<90)
{
grade='B';
}
else if(total>=70 && total<80)
{
grade='C';
}
else if(total>=60 && total<70)
{
grade='D';
}
else if(total<60)
{
grade='F';
}
cout<<endl;
//display the marks and the letter grade
cout<<"First best midterm score is:
"<<max<<endl;
cout<<"Second midterm score is: "<<sum - max -
min<<endl;
cout<<"First quiz score is: "<<quiz1<<endl;
cout<<"Second quiz score is:
"<<quiz2<<endl;
cout<<"Final exam marks are:
"<<final_marks<<endl;
cout<<"The percentage grade is:
"<<total<<endl;
cout<<"The letter grade is: "<<grade<<endl;
return 0;
}
//end of the main function
==================================================================
Sample Output:

==================================================================
Kindly Check and Verify Thanks...!!!
Write a c++ program to compute and print the grade for one student. The grade is...
using if/switch statements (C++) Write a grading program for a class with the following grading policies: There are two quizzes, each graded on the basis of 10 points There is one midterm exam and one final exam, each graded on the basis of 100 points The final exam counts for 50% of the grade, the midterm counts for 25% and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should...
Write a grading program for the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:- >90 A >=80 and <90 B...
Write a grading program in Java for a class with the following grading policies: There are three quizzes, each graded on the basis of 10 points. There is one midterm exam, graded on the basis of 100 points. There is one final exam, graded on the basis of 100 points. The final exam counts for 40% of the grade. The midterm counts for 35% of the grade. The three quizzes together count for a total of 25% of the grade....
In C Langage Write a grading program for a class with the following grading policies:- a. There are two quizzes, each graded on the basis of 10 points. b. There is one midterm exam and one final exam, each graded on the basis of 100 points. c. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent and the two quizzes together count for a total of 25 percent. Grading system is as follows:-...
C++ Write a program to calculate final grade in this class, for the scores given below . Remember to exclude one lowest quiz score out of the 4 while initializing the array. Display final numeric score and letter grade. Use standard include <iostream> Implementation: Use arrays for quizzes, labs, projects and exams. Follow Sample Output for formatting. May use initialization lists for arrays. Weight distribution is as follows: Labs: 15% Projects: 20% Quizzes: 20% Exams: 25% Final Project: 20% Display...
Many classes calculate a final grade by using a weighted scoring system. For example, “Assignments” might be worth 40% of your final grade. To calculate the grade for the Assignments category, the teacher takes the percentage earned on the assignments and multiplies it by the weight. So if the student earned a 90% total on the Assignments, the teacher would take 90% x 40, which means the student earned a 36 percent on the Assignments section. The teacher then calculates...
C ++ . In professor Maximillian’s course, each student takes four exams. A student’s letter grade is determined by first calculating her weighted average as follows: (score1 + score2 + score3 + score4 + max_score) weighted_average = ----------------------------------------------------------------------- 5 This counts her maximum score twice as much as each of the other scores. Her letter grade is then a A if weighted average is at least 90, a B if weighted average is at least 80...
Write a program to calculate your final grade in this class. Three(8) assignments have yet to be graded: Quiz 7, Lab 7 and Final Project. Assume ungraded items receive a grade of 100 points. Remember to drop the lowest two quiz scores. Display final numeric score and letter grade. Implementation: Weight distribution is listed in canvas. Use arrays for quizzes, labs, projects and exams. You are allowed to use initialization lists for arrays. Use at least three (3) programmer defined...
Java Program: In this project, you will write a program called GradeCalculator that will calculate the grading statistics of a desired number of students. Your program should start out by prompting the user to enter the number of students in the classroom and the number of exam scores. Your program then prompts for each student’s name and the scores for each exam. The exam scores should be entered as a sequence of numbers separated by blank space. Your program will...
Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program: calcAverage—This function should accept five test scores as arguments and return the average of the scores. determineGrade—This function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale: Score Letter Grade...