Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java please 9:55 Note @13 simple lists of numbers. If the user selects option 2, your program should prompt for a list of integer grades

Java please image text in transcribed
image text in transcribed
9:55 Note @13 simple lists of numbers. If the user selects option 2, your program should prompt for a list of integer grades (0 100, inclusive). When the list is entered print out the following statistics: total grades, the breakdown of grades by letter both count and percentage), the highest and lowest grades in the list, and the class average Example #1 Please enter a list of grades (0-100): 55 65 75 85 95-1 Total number of grades 5 Number of A's 1 (20%) Number of B's-1 (20%) Number of C's (20%) Number of D's-1 (20%) Number of F's (20%) Highest grade 95 Lowest grade 55 Class average 75 Updated Just Now 10:04 1 Note @13 Notes Note that the list is completed when a grade is entered that is out of range, (like -1) . If the list is empty, print only the total, and skip the other lines of output. This avoids meaningless highs and lows, or division by zero when calculating the average or the precentages. Letter grade breakdowns follow the scheme: 90% and above is an A', 80% and above is a 'B", 70% and above is a C', 60% and above is a D. Below 60% is an 'F'. All calculations for this assignment should be performed with integer precision; please do not use float or double type variables, or you will get different answers from ours. It is not necessary to store the list of grades to complete this assignment. Each of the statistics required can be calculated simply by examining the next grade in the sequence and updating the relevant counts and totals. For those of you with more advanced experience, it would be needlessly complex to store all

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

Repeat Example 16.8, except that the ore contains 3 wt% Cu 2 O

Answered: 1 week ago