Write a fully documented Java program that asks the user to enter a list of exam scores given as integer percentages in the range of 0 to 100. The user should indicate the end of the list by entering a sentinel value of -1. The program should include a loop for inputting the values. Within the loop, the program should count the total number of scores entered and accumulate an overall total of the scores. Decision statements should be used to determine the number of scores entered for each letter grade category (as shown below) as well as the lowest and highest score entered. After the loop is completed, the program should calculate the percentage of grades entered in each letter-grade category and the overall average. (See p. 255, Practice Programs 5, 6 & 7, Savitch) The test input and results should be similar to that shown below, including the spacing between lines, and aligning the columns. The grade-letter category percentage must be rounded to a whole number and the overall average percentage must be rounded to 1 decimal place. Sample program execution: Please enter a list of exam grades. End the list by entering a -1. 85 50 98 72 86 63 85 78 70 72 87 72 66 73 -1 There were 14 grades entered as follows: A grades (90 – 100): 1 or 7% B grades (80 – 89): 4 or 29% C grades (70 – 79): 6 or 43% D grades (60 – 69): 2 or 14% F grades (0 – 59): 1 or 7% The scores ranged from 50 to 98 The overall average was 75.5

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Write a fully documented Java program that asks the user to enter a list of exam scores given as integer percentages in the range of 0 to 100. The user should indicate the end of the list by entering a sentinel value of -1. The program should include a loop for inputting the values. Within the loop, the program should count the total number of scores entered and accumulate an overall total of the scores. Decision statements should be used to determine the number of scores entered for each letter grade category (as shown below) as well as the lowest and highest score entered. After the loop is completed, the program should calculate the percentage of grades entered in each letter-grade category and the overall average. (See p. 255, Practice Programs 5, 6 & 7, Savitch) The test input and results should be similar to that shown below, including the spacing between lines, and aligning the columns. The grade-letter category percentage must be rounded to a whole number and the overall average percentage must be rounded to 1 decimal place. Sample program execution: Please enter a list of exam grades. End the list by entering a -1. 85 50 98 72 86 63 85 78 70 72 87 72 66 73 -1 There were 14 grades entered as follows: A grades (90 – 100): 1 or 7% B grades (80 – 89): 4 or 29% C grades (70 – 79): 6 or 43% D grades (60 – 69): 2 or 14% F grades (0 – 59): 1 or 7% The scores ranged from 50 to 98 The overall average was 75.5
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education