Write a program to do simple analysis on the scores

Assignment Help Computer Engineering
Reference no: EM131876636

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).

Reference no: EM131876636

Questions Cloud

Write a function that takes no input parameters : Write a function that takes no input parameters and returns nothing (void). Inside the function, create a variable of type int, and give that variable a value.
What will be the average annual cost of ownership : What will be the average annual cost of ownership during the next five years if interest is 6%?
Find the service level : A news-stand buys a weekly magazine from a publisher once every week at $3 per copy. It sells the magazine at $5 per copy.
Would you trust a neural network with your life : Would you trust a neural network with your life? For instance, would you get in a plane about to be flown by a neural network?
Write a program to do simple analysis on the scores : 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.
How would you create a nested process : A Nested Process is identified as a concept of a process within a process. Meaning, processes can be broken down into subprocesses.
Create a network security vulnerability and threat table : Create a network security vulnerability and threat table in which you outline the security architecture of organization and cryptographic means of protecting.
What is the total vehicle delay in veh-min : A new computer system is put in place at a toll booth. Assuming D/D/1 queuing, what is the total vehicle delay in veh-min?
Describe the statute in terms of all possible classification : A new state law mandates that all employers must prohibit smoking on employer premises.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the purpose of the instruction decoder

What is the purpose of the program counter? What does a sequence controller do?

  Prepare a case for setting up a single separate dns server

a customer support center employs 10000 people with their own associated ip addresses and operates over 250 servers

  Define coding of binary information and error detection

define Coding of Binary Information and Error Detection.

  Show the total amount of accounts in the jtextfield

Sort the files according to which JCheckBox the user selects. (If a user selects another checkbox the previous becomes unselected).

  Discuss important to harden a computer system or network

Explain why it is important to harden a computer system or network, citing information from your article to support your response

  Questionconsider a ram of 4m words x 32 bitsword that has

questionconsider a ram of 4m words x 32 bitsword that has data lines address lines read and write down and select

  How can you ensure that users do not notice the change

How can you ensure that users don't notice this change? Explain the significance of fast symbolic links and dangling symbolic links.

  List the three phases of the computer problem-solving model

List the three phases of the computer problem-solving model. How does the computer problem-solving model differ from Polya's?

  What alternative arrangements could have been made

Describe a project In which the systems analyst did not have direct contact with the real user. What alternative arrangements could have been made?

  Explain why you are emailing and other relevant information

Explain why you are emailing and other relevant information. Include a brief subject line which reflects the content of the email. Include a greeting like you would in a business letter.

  Create a script that accepts a filename as argument

Write a script that accepts a filename as argument and then searches /bin and /usr/bin to determine its link count. If the file exists and has multiple links.

  A system that calculates and returns the mean and a method

A system that calculates and returns the mean and a method

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd