Create a program to calculate grades as well as descriptive statistics for a set of test scor test scores can be entered via a user prompt or through an external file. For each student, 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:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Hello, I need some help with this homework problem for my advanced data structure course. It is all done in c++ but I am mostly still lost with this .h file stuff. I have placed the following assignment below.

No negative value ( -numbers input) can be input, if so the a line must be created and called upon with the explanation as "Invalid value, please enter a correct value"

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
John
Кaren
90
100
93
A
A
A
Calculate the following descriptive statistics (as shown below)
Number of students in the class
o Average score
Maximum score
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
A loop structure (for-loop, while-loop, or do-while-loop)
Conditional processing (if-then-else)
о Arrays
At least one function
оо
Transcribed Image Text: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 John Кaren 90 100 93 A A A Calculate the following descriptive statistics (as shown below) Number of students in the class o Average score Maximum score 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 A loop structure (for-loop, while-loop, or do-while-loop) Conditional processing (if-then-else) о Arrays At least one function оо
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Can you do the same problem but without class and just arrays?

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning