Write C++ program that calculates and displays the average of two integer test scores for any number
Question:
Write C++ program that calculates and displays the average of two integer test scores for any number of students. The user will enter a student's name and the two test scores, then calculate the average. Use a pretest loop and make the program repeat until the user enters EOD (end of data) for the student's name. Since you can't control which case the user uses, transform the name to all uppercase after it's entered.
Make your output print in table form, without the input prompts between the output lines. To do that, you'll need to use sprintf_s() with an output buffer. Format your averages with 1 decimal place.
Use cin.ignore(100, '\n'); before a getline() method that follows a cin statement.
Test the program with the following data:
Student's Name Score 1 Score 2 Average
Snow White 85 92
Bugs Bunny 77 63
Luke Skywalker 100 76
EOD (this will not be included in your output)