Create a complete C++ program that will read from a file, "studentInfo.txt", the user ID for a student (a number, but use a string to hold it). Next it will need to read three integer values that will represent the 3 exam scores the student got for the semester. Once the values are read and stored in descriptive variables it will then need to calculate a weighted course average for that student. Below is an example of what the calculation would be for the program. score1 * .3 + score2 * .3 + score3 * .4 The program will then determine the letter grade for that student and write the user ID and the letter grade to a file "studentGrade.txt" The standard grading scale will be used: A --> 90 – 100 B --> 80 - 89.99 C --> 70 - 79.99 D --> 60 - 69.99 F --> below 60 To keep from the user being confused as if anything happened or not, give them a ending statement i.e. Something like the following: Program has completed and the output can be found in 'studentGrade.txt' Files Referenced StudentInfo.txt
Create a complete C++
Below is an example of what the calculation would be for the program.
score1 * .3 + score2 * .3 + score3 * .4
The program will then determine the letter grade for that student and write the user ID and the letter grade to a file "studentGrade.txt"
The standard grading scale will be used:
A --> 90 – 100
B --> 80 - 89.99
C --> 70 - 79.99
D --> 60 - 69.99
F --> below 60
To keep from the user being confused as if anything happened or not, give them a ending statement i.e. Something like the following:
Program has completed and the output can be found in 'studentGrade.txt'
Files Referenced
StudentInfo.txt
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images