Question: C++ Please use #include TASK: Design a Student class template that has properties first name, last name, ID, four test scores, and associated weights. Use
C++
Please use #include
TASK: Design a Student class template that has properties first name, last name, ID, four test scores, and associated weights. Use get and set methods.
-----
Weighted average = weight1*T1 + weight2*T2 + weight3*T3 + weight4*T4
For Example: weightedAvg = 0.10(85.5) + 0.15(83) + 0.25(96) + 0.50(77) = 83.5
**The weights are always floats and you should make sure they add to 1 or 100%.
**The test scores could be of type int, float, or double. These should never be negative.
The class template should have a constructor, accessor methods, and a weighted average method. Also provide a straight scale grade method... A, B, C, D, or F.
-----
In the main, instantiate TWO student objects. Hard code the properties and demonstrate that your methods all work. No user interface.
------
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
