Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this hw, you are asked to write a Java program that loads a series of integers one by one (scores obtained by students in

image text in transcribed
image text in transcribed
image text in transcribed
In this hw, you are asked to write a Java program that loads a series of integers one by one (scores obtained by students in a test) and prints a report showing the following: 1) How many students passed the test (passing a test is obtaining a score of 70 or hgher) 2) Print a report like the one shown in the sample run, a report that shows how many received the grade of A, B, C, D and F. The standard letter grade scale is used-See sample run. Note We11 that you are NOT allowed to use arrays, arraylists, or any data structures that allow holding more than one value. That is: A11 variables declared in your code must be single variables declared fron the primitive data types (or strings). Sample run (User's entry is marked in Bold) Welcome to my program. You will be asked to enter the scores of a test one by one, and to enter-1 to stop. Enter Score (Enter - 1 to Stop): 78 Enter Score (Enter - 1 to Stop): 96 Enter Score (Enter - 1 to Stop): 45 Enter Score (Enter - 1 to Stop): 78 Enter Score (Enter 1 to Stop): 69 Enter Score (Enter - 1 to Stop): 71 Enter Score (Enter-1 to Stop): 771 Score 771 Rejected Enter Score (Enter - 1 to Stop): 47 Enter Score (Enter - 1 to Stop): 67 Enter Score (Enter - 1 to Stop): 82 Enter Score (Enter 1 to Stop): 458 Score 458 Rejected Enter Score (Enter 1 to Stop): 100 Enter Score (Enter-1 to Stop): 17 Enter Score (Enter - 1 to Stop): 97 Enter Score (Enter-1 to Stop):-1 Here is your report: - A total of 12 scores entered. 7 of them are 70 or higher. - Letter Grade distribution of the scores: - 3 Students earned the grade of A(90100) - 1 Students earned the grade of B(8089) - 3 Students earned the grade of C(7079) - 2 Students earned the grade of D(6069) - 3 Students earned the grade of 7 ( 59 or below) - The average score is: 70.58 Would you like to process another class? (Y or N):n (Here assume that the user enters either y,Y,n or N ) Goodbyel

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

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions