Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task a Your task is to read a list of students name and grades in a class from the standard input. first line of the
Task a Your task is to read a list of students name and grades in a class from the standard input. first line of the input contains one integer that indicates how many lines (students) follow Student names will always be two strings (first name and last name) separated by whites Print out the average score on the last line as shown below. The letter grade will be deter by the Z-score for the assignment. The Z-score depends on the mean and the standard dev The student letter grade for the assignment is based on how many standard deviations as from the mean that student number grade is. More information about this z-scores can be on the wikipedia page here. w For this project the letter grade will be determined by the following cut-offs: A>=1.0, 1.0 > B>=0.0.0.0 > C>=-1.0,-1.0 >D>=-2.0,-2.0 >F The first names are aligned to the right in the columns of width 15, and the last names ar aligned in columns of width 15. All the columns are separated by one space. The grade c is right-aligned with width 5, the z-score is right-aligned with width 5 and 2 decimal pla right of the decimal point, the letter grades shown. Sample input: 5 John Smith 75 Judy Smith 86 Mehdy Bohlool 72 John Terry 59 Marry Williams 100 Sample output: Name John Smith Judy Smith Mehdy Bohlool John Terry Marry Williams 78.40 Score Z Grade 75 -0.25 86 0.55 B 72 -0.46 59 -1.41 D 100 1.56 A Average
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