Question: using c++ In this assignment you are asked to write a program that calculates a letter grade for each student upon reading records of information
using c++
In this assignment you are asked to write a program that calculates a letter grade for each student upon reading records of information from a grade.txt file. The contents of the grade.txt file is similar to the following, but will have more lines: John Sebastian 90 80 85 89 80 90 86 88 89 99 100 Brown Ford 40 60 80 100 80 90 8381 89 97 90 Each line consists of first name, last name, 3 exam grades (the first 2 exams each are worth 15%, and the third exam is worth 25%), followed by three quiz and five homework grades. Each quiz is worth 5% (15% total); the five homework grades are worth 25% (5% each). After your program reads in the first and last names, it will read in the exam, quiz and homework grades in the order. For each student it should call a function called letter_grade() to calculate the weighted average scores. It should pass the scores and the weights in two separate arrays to the function. The function using the following formula: A if average grade is > 90 if average grade is > 80 and 70 and 60 and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
