Question
In C++ Write a program that manages eight students information. Prompt the user for a data filename. Read the last name, first name, and 10
In C++ Write a program that manages eight students information. Prompt the user for a data filename. Read the last name, first name, and 10 test scores for 8 students. Calculate each students average and grade. Determine the highest and lowest average for the class. Display information to the user.
Use a structure to hold all of the student information. The main function should be short and mainly consist of function calls.
Sample Run #1: (the highlighted text is what the user types) `
Filename? Struct_EightStudents.txt
Student Average Grade
Jones, Bob 80 B
Johnson, Joe 80 B
Williams, Ben 80 B
Brown, David 70 C
Taylor, Tom 80 B
Clark, John 80 B
Lee, Jane 80 B
Smith, Sue 90 A
Highest Avg 90
Lowest Avg 70
When printing the results:
name should be left-justified, 15 characters wide
average should be right-justified, 4 characters wide
print 8 spaces
print the grade
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