Cis355A question 5 : Suppose that you have an array of baseball scores - 39740

Solution Posted by
Solution Detail
Price: $6.00
Request Description

Cis355A question 5

Suppose that you have an array of baseball scores (type integer) called Scores. The values in the array are ordered from largest to smallest. You need to find the average score, and how many scores are less or equal to the average, and how many are greater than the average. Write a code fragment to accomplish it, or at the very least write a detailed plan (pseudocode).

Solution Description

//Name of File: Baseball.java

 

 

class Baseball

 

{

 

public static void main(String[] args)

 

{

 

int[ ] score = {10,9,7,6,5,5,4,3,3,3,2,0};

 

int size;

 

int