Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions