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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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