Write a C++ program to read the data from the file grades.tx…
Write a C++ program to read the data from the file grades.txt and then calculate the average grade and letter grade for each student. Then, write the results to the screen and to a new file called results.txt. For determining letter grades, use the scale: average grade >= 90% —-> A average grade >= 80% —-> B average grade >= 70% —-> C average grade >= 60% —-> D average grade < 60% ----> F Assume that each line in the input file contains a student name followed by four integer values representing their grades. This is a sample grades.txt file. Alice 95 88 92 54Bob 75 81 67 41Charlie 89 93 87 41 In the file above, there can be any number of lines. Sample Output: Alice 82.25 B Bob 66 D Charlie 77.5 C Your program should compile and run. Add enough comments and make sure your program is correctly indented.
Read DetailsDiscuss how the following exercise intensities will affect w…
Discuss how the following exercise intensities will affect which fuel is used during exercise. Determine which fuel (meaning primary substrate) will be the primary energy source. Write the fuel substrate next to each percentage 30% VO2 max —– 40% – 60% VO2 max —– >80% VO2 max —
Read Details