Write a program to do simple analysis on the scores on the


Assignment

Your history professor has just learned that you are a computer whiz. She has made you an offer you cannot refuse! If you will write a program to do simple analysis on the scores on the final exam, she will allow you not to take it. You, of course, cheerfully agree.

Your program should be able to handle the 13 students in the class. It should do the following things:

1. Read in the scores on the final exam using a sentinel loop. Use a method to read the scores and return the number of scores read.

2. Use a method to calculate and print the class average (print class average to one decimal digit)

3. Use a method to calculate and print the class maximum score.

4. Use a method to calculate and print the class minimum score.

5. Use a method to count the number of scores that are above average and print the result.

6. Use a method to sort the array in ascending order, print the scores after sorting them

Note - all methods will be static since there are no calling objects. There is no need to create another class for these methods since they will only be used for this problem. Include the methods in the same class file you use for your main method.

Input

70 90 80 85 65 55 100 70 40 77 66 55 44

Output

Class Average = 69.0

Class Maximum =100

Class Minimum = 40

Number Above Average = 7

Method Headings

public static int readScores(int[] score)

public static double average(int[] score, int number)

public static int max(int[] score, int number)

public static int min(int[] score, int number)

public static int aboveAverage(int[] score, int number, double avg)

public static void sort(int[] score, int number).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to do simple analysis on the scores on the
Reference No:- TGS02672129

Expected delivery within 24 Hours