Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java code pls - Repeatedly read in grades from the keyboard until -1 is entered - If you had me for IST 261, don't use

Java code pls

image text in transcribed

image text in transcribed

image text in transcribed

- Repeatedly read in grades from the keyboard until "-1" is entered - If you had me for IST 261, don't use any of the "Helper" or "Validation" methods or classes. For this assignment, I want to see straight-forward code. - You can assume the user is entering numerical data - A grade must be a between 0 and 100 , inclusive. So, 0 is a valid grade. - Decimal grades are allowed - Grades like "71.0" should be displayed as "71". - When -1 (negative one) is entered, then the user has finished inputting grades - This means users can enter as many grades as they want - Output the count of valid grades, and count of invalid grades - Output the highest, lowest, and average grade - It's fine if you have repeating decimals for the average - e.g., showing 33.3333333333 is acceptable - Output the list of valid grades - Output the list of invalid grades - Every valid grade you output must have the corresponding letter grade in parentheses next to it - e.g., instead of 92 , you will display 92 (A-) - e.g., instead of 4, you will display 4 ( F ) - Remember, there is no restriction on how many grades can be entered. - Indent your code properly!!! - Points will be deducted if you don't - Output - When given the input below, your output must match it exactly (except for your info) When given the input below, your output must match it exac (except for your info) Name: Jo student Email: jxs5123@psu.edu Course: IST 311 Assignment: IA01 Enter a grade: 71 Enter a grade: 85.2 Enter a grade: -2 Error. Grade must be between 0 and 100 ; or 1 to finish Enter a grade: - 12.23 Error. Grade must be between 0 and 100 ; or 1 to finish Enter a grade: 99.6 Enter a grade: 73 Enter a grade: 101 Error. Grade must be between 0 and 100 ; or 1 to finish Enter a grade: -1 You entered 4 valid grades. You entered 3 invalid grades. Highest grade: 99.6 (A) Lowest grade: 71 (C) Average: 82.2 (B-) Here are the 4 valid grades: 71 (C) 85.2 (B) 99.6 (A) 73 (C) Here are the 3 invalid grades: 2 12.23 101

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 Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago