Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Program: Create a data file to store student names and test score, testScore.txt Write a program will will readthe data from the data file
C++ Program: Create a data file to store student names and test score, testScore.txt
Write a program will will readthe data from the data file and compute averageScore
averageScore = 0.15*(test1 + test2) + 0.2 * midterm + 0.3 * final + 0.2 * homeworks
then,compute the grade by using
averageScore: 90 - 100, grade = 'A'
80 - 89, grade = 'B'
70-79, grade = 'C'
60-69, grade = 'D'
< 60, grade = 'F'
Print the following for each student
LastName FirstName averageScore Grade
Save the results in a an output file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started