Question: use c++ for coding please done it using classes make class for every subject and please use inheritance and also use templates as given in

use c++ for coding please done it using classes make class for every subject and please use inheritance and also use templates as given in the instructions. please do it as given in the picture.


the input should be taken from file and output should be also on output file .
You will design a set of classes for storing student information, along with a class that will manage a list of students. Data can be imported from files for storage in the list, and summary reports with computed final grades will be printed to output files. 1. Design a set of classes that stores student grade information Students can be classified into three categories: English students, History students, and Math students, The Student information is as follows student's first name student's last name Which course the student is in (English, History, or Math) 2. Each class should have a function that will compute and return the student's final average, based on the stored grades. All grades are based on a 100-point scale. Here are the grades that need storing for each subject, along with the breakdown for computing each final grade: English - Attendance = 10%. Project = 30%, Midterm = 30%, Final Exam = 30% History - Term Paper = 25%, Midterm = 35%, Final Exam = 40% Math -- There are 3 quizzes (each out of 100), to be averaged into one Quiz Average (which will be a decimal number). Final grade computed as follows: * Quiz Average = 10%, Test 1 = 25%, Test 2 = 25%, Final Exam = 40% 3. The datatype of marks in above courses (English, History and Math) can vary. It could be float, double, integer, long or any other user defined datatype. If the input file contains double marks instead of integer, your program should run for it. Use class templates and function templates in classes. 4. Identify all the classes and their relation and find which functions need to be virtual Make a UML Diagram and define all the classes according to UML Diagram. test1.txt 4 Bunny, Bugs Math 90.1 86.2 80.3 99.5 96.7 93.2 Schmuckatelli, Joe History 88 75 90 Dipwart, Marvin English 95 76 72 88 Crack Corn, Jimmy Math 44 58 23 59 77 68 test2.txt 2 Kirk, James T. English 40 100 68 88 Lewinsky, Monica Lab Manual of History 60.5 72.5 78 Corresponding output file (outfilel.txt): Student Grade Summary ENGLISH CLASS Student Name Final Final Exam Avg Letter Grade Marvin Dipwart James T. Kirk 88 88 80.30 80.80 B HISTORY CLASS Student Name Final Final Exam Avg Letter Grade 90 Joe Schmuckatelli Monica Lewinsky 84.25 71.40 78 MATH CLASS Student Name Final Final Exam Avg Letter Grade Bugs Bunny Jimmy Crack Corn 93 68 94.83 65.33 D OVERALL GRADE DISTRIBUTION A: B: C: D: F: 1 3 1 1 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
