Question: C++ All methods/functions should use template (not exactly needed for weighted avg) TASK: Design a Student class template that has properties first name, last name,

C++  C++ All methods/functions should use template (not exactly needed for weighted
All methods/functions should use template (not exactly needed for weighted avg)

TASK: Design a Student class template that has properties first name, last name, ID, four test scores, and associated weights. 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!