Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program to calculate grades as well as descriptive statistics for a set of test scores. The test scores can be entered via a

image text in transcribedimage text in transcribed
Create a program to calculate grades as well as descriptive statistics for a set of test scores. The test scores can be entered via a user prompt or through an external file. For each student, you need to provide a student name (string) and a test score (float). The program will do the followings: Assign a grade (A, B, C, D, or F) based on a student's test score. . Display the grade roster as shown below: Name Test Score Grade Ann 90 A John 100 Karen 93 A . Calculate the following descriptive statistics (as shown below) o Number of students in the class o Average score o Maximum score O Minimum score ====Class Statistics = = = =: Number of students in the class: 3 Class Average: 94.3333 Maximum Test Score : 100 Minimum Test Score : 90 The program must use o A loop structure (for-loop, while-loop, or do-while-loop) o Conditional processing (if-then-else) o Arrays or vectorsModify assignment # 1 so that the instructor can enter up to 5 test scores per student. The class roster should include the average test score for each student as well as the overall grade. Update the class statistics to include the average score for each of test. You must create a class called student that has the following data members. First Name Last Name . An array or a vector that contains the test scores. All class data members must be private or protected. Separate the class interface from the class implementation and use include guards

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions