Where Designation will match a single character from the respective column in the above table, and Grade will be a percentage.
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
An input file will contain a list of grades using the following format:
[Designation] [Grade] Where Designation will match a single character from the respective column in the above table, and Grade will be a percentage.
For example, Q 100 A 90 The first line shows a quiz grade with the value of 100. The second line shows an assignment grade with the value of 90. Note that when calculating the weighted average, only weights that have grades are calculated. That is, in the above example, there are no tests nor exams to calculate, so the denominator will not be 1, but rather 0.25+0.35=0.6. The program accepts 2 input parameters on the command line. The first is the name of the input file, the second is the name of the output file.
REQUIREMENTS
- Implement the GradeCalculator::Load and GradeCalculator::CalculateAverage functions. a. Load should fill the m_Grades vector b. CalculateAverage should return a pair containing the count and average for the type provided
- Neither function should contain a user-defined loop.
- There should be no memory leaks.
- The only changes will be where the // TODO
- There should be no additional functions nor data types added.
Attachments:
Related Questions
. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:
1
Project 1
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of
. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:
1
Project 2
Introduction - the SeaPort Project series
For this set of projects for the course, we wish to simulate some of the aspects of a number of