Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Write a program that calculates the class average. The program will ask a user to input the number of students and input each grade

JAVA

Write a program that calculates the class average. The program will ask a user to input the number of students and input each grade of students. Then, the program calculates the average of the class and select highest and lowest grade of the class. Your program should meet the following requirements:

  1. You must use a single-dimensional array.
  2. Define three static methods - one for getting the highest score, one for getting the lowest score, the other for calculating the average.
  3. Array size should be determined by user input (number of students).
  4. Ask a user to input each grade of students (use for loop).
  5. All grades you input should be double data types and must be saved in an array.
  6. The average of the class should have two decimal places.
  7. Include comments explaining the code

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago