Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

Prepare a short profile of victor marie hugo ?

Answered: 1 week ago

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago