“Somebody showed it to me and I
found it by myself.” LEW WELCH

Using and ‘if’ and #include<iomanip.h> (for format of the decimal).
You need to produce a eraport card for a student taking a class at the “C++ Institute”
Ask the student’s name
Ask the name of the class
Ask for 3 test scores
Calculate the average test grade
Determine the letter grade for this class (no pluses or minuses)
Determine the status (passing or failing)
Print out the report card shown below.
***C++ Institute
*** ___Grade Report___ Student: Konrad Chumley Class: Sewing Test#1: 80 Test#2:
90 Test#3: 95 Average:
88.33 Grade: B Status: Passing
Hints:
To get the letter grade… if (ave>=90) grade==’A’;
if (ave>=80 && ave<90) grade==’B’; //&& means ‘and’
for status… if (grade==’F’) strcpy (status, “failing”); //strcpy means string copy
(must include header <string.h>)
Use these identifiers… (name, class_nam, test1, test2, test3, ave, status, and grade)
Use char name[81], class_nam[81], status[81], and grade;
float test1, test2, test3, ave;
Grading scale is 90-100+ A, 80-89.999 B, 70-79.999 C, 60-69.999 D, and below 60 is F.