Question
IN JAVA PLEASE Your task is to read a list of students name and grades in a class from the standard input. The first line
IN JAVA PLEASE
Your task is to read a list of students name and grades in a class from the standard input. The 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 whitespace. Print out the average score on the last line as shown below. The letter grade will be determined by the z-score for the assignment. The z-score depends on the mean and the standard deviation. The student letter grade for the assignment is based on how many standard deviations away from the mean that student number grade is. More information about this z-scores can be found on the wikipedia page here. 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 are left aligned in columns of width 15. All the columns are separated by one space. The score is right-aligned with a width of 5. The grade column is right-aligned with width 5, the z-score is right-aligned with width 5 and 2 decimal places right of the decimal point, the letter grades shown. There is a space between the average and is rounded to two decimal places Sample input:
5 John Smith 75 Judy Smith 86 Mehdy Bohlool 72 John Terry 59 Marry Williams 100
Sample output:
Name Score Z Grade John Smith 75 -0.25 C Judy Smith 86 0.55 B Mehdy Bohlool 72 -0.46 C John Terry 59 -1.41 D Marry Williams 100 1.56 A Average 78.40
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