Creat a class that saves the grades

Assignment Help JAVA Programming
Reference no: EM13167749

Creat a class that saves the grades of students in an array, and contains a few methods that do some statistics on these grades. Your task is to create this class, and create client testing class that does all the necessary tests of its methods.

Following is a more detailed description of the class.

class Statistics:

1. Has an array of int called grades with capacity 10. The grades' values range between

0 and 100.

2. Has one constructor that takes an array of int as a parameter and assigns it to the field


3. Has a method getAverage with the following header:

public float getMean()

The method returns the mean (average) of the grades in the array

4. Has a method getMaxGrade():

public int getMaxGrade()

That returns the maximum grade in the array

5. Has a method getMinGrade():

public int getMinGrade()

That returns the minimum grade in the array

6. Has a method getMedian():

public int getMedian()

That returns the median grade in the array


class TestStatistics:

Is a client class that tests all methods in class Statistics.

Reference no: EM13167749

Create an application that keeps tracks of the information

Create an application that keeps tracks of the information in such a simple social network. More specifically, your application will allow for user profiles to be added to,

Write a program that reads in a text file and then computes

Write a program that reads in a text file and then computes and prints a table of letter frequencies. For example, if the file is the text of "A Tale of Two Cities", found in

Write a java sorting application with two classes

Write a Java Sorting Application with two classes, JavaSort and JavaSortTest. Your JavaSort Class, as a minimum must contain sorting methods for BubbleSort, InsertionSort, She

Implement a game of tic-tac-toe

Specify, design, and implement a class that can be one player in a Game of tic-tac-toe. The constructor should be specify whether the object is to be the first player (X's)

Type i and type ii virtualizations

Compare and contrast at least two (2) similarities and two (2) differences between Type I and Type II virtualizations. Using your comparison, choose either a Type I or Type

Implementation of a simple java class

The purpose of this lab is to gain experience in the design and implementation of a simple Java class.  You will create a class definition and write a simple main method tha

One-dimensional array to store grades

Use three arrays: a one-dimensional array to store the student names, a (parallel) twodimensional array to store the test score, and a parallel one-dimensional array to stor

Write program that convert us dollar into canadian dollar

Design a new class named Polygon that extends GeometricObject and implements Comparable. The number of sides in polygons varies, you cannot use a certain number of data fiel


Write a Review

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