Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Calculate a final grade out 100% from the following data: a. Grades 1 & 2 are Qu

ID: 3620244 • Letter: C

Question

Calculate a final grade out 100% from the following data:
a. Grades 1 & 2 are Quiz grades out of 10 points and count for 15% of the final grade.
b. Grade 3 is a term paper, graded with an A, B C, D or F where A = 95, B = 85, C = 75, D = 65 and F = 55, and count for 40% of the final grade.
c. Grade 4 is the number of points received on the final. The final exam was out of 75 total points and is 45% of the final grade.

ive introduced all my variables but i cant figure out how to create a function that can create the final grade plz help

Explanation / Answer

please rate - thanks hope this is what your looking for #include <iostream>
#include <iomanip>
using namespace std;
int main()
{double q1,q2,final,tp,sum,qg,tpg,fg;
char tpc,letter;
cout<<"Enter the students grades ";
cout<<"Quiz 1: ";
cin>>q1;
cout<<"Quiz 2: ";
cin>>q2;
cout<<"Term Paper: ";
cin>>tpc;
tpc=toupper(tpc);
if(tpc=='A')
   tp=95;
else if(tpc=='B')
   tp=85;
else if(tpc=='C')
   tp=75;
else if(tpc=='D')
   tp=65;
else
   tp=55;   
cout<<"Final: ";
cin>>final;
qg=(q1+q2)/20.*.15*100;
tpg=tp*.4;
fg=(final/75.)*.45*100;
sum=qg+tpg+fg;
if(sum>90)
    letter='A';
else if(sum>80)
    letter='B';
else if(sum>70)
      letter='C';
else if(sum>60)
      letter='D';
else
     letter='F';
cout<<"final grade is: "<<letter<<endl;  
system("pause");
return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote