Create a java application that contains methods to display

Assignment Help JAVA Programming
Reference no: EM13786475

Name the Java Class: ArrayStatistics

Create a Java application that contains methods to display statistics for the numbers in an array.

The main method has been written and it's attached. complete the program by writing the following methods.

fillArray Method: Read the grades from a file named ExamScores.txt. The first number in the file is the number of exams follows by the exam scores. Create an array of the size indicated and fill it with exam scores from the file. After the exams are loaded, sort the array. Return the array to the calling method.

displayGrades Method: Receive the array as an argument and display the count for each letter grade (A, B, C, D, F). Letter grades are determined as follows:

Score Letter Grade

90-100 A

80-89 B

70-79 C

60-69 D

Below 60 F

frequencyChart Method: Receive the array as an argument and display a frequency chart for each exam score in the array. Display an asterisk for each distinct score found.

getMode Method: Receive the array as an argument and return the mode. If there are duplicate numbers for the mode, simply return the first number.

getAverage Method: Receive the array as an argument and return the average of exam scores found in the array.

getStandardDeviation: Receive the array and the average as arguments and return the standard deviation. Use the formula for standard deviation shown in exercise 7.11 on page 278 of the text.

*if you use any variables give them long, meaningful descriptive names.

*use descriptive comments to explain what you do

Program output should look like this:

There are 32 exam scores

Frequency Chart

62 **
66 *
68 *
70 *
71 *
72 *
75 **
77 ***
80 *
83 *
85 ***
86 *
87 ***
88 *
89 **
90 *
91 *
94 ****
95 *
96 *

Mode 94
Average 82.21875
Standard Deviation 10.02

Letter Grade Summary
A 8
B 12
C 8
D 4
F 0

Reference no: EM13786475

Questions Cloud

Discuss the people who inhabit the space : discuss the people who inhabit the space. For our class you will be looking specifically at the use of technology in our culture. What types of technology do you see?
What is needed to break even on the project : The CEO is relying on you to help decide how this project can be afforded Provide details about the estimated product costs, what is needed to break even on the project, and what level of return this product is expected to provide.
How consumer demands affect a company business decision : How consumer demands affect a company's business decision
Scientific study of personality paper : Researchers use a number of different methods to study personality. Three of the most commonly used methods are case studies, correlational designs, and experimental designs or true experiments. How do these methods differ?
Create a java application that contains methods to display : Create a Java application that contains methods to display statistics for the numbers in an array. The main method has been written and it's attached. complete the program by writing the following methods.
Prepare the necessary closing entries : Presented below is information related to Gonzales Corporation for the month of January 2014. Cost of goods sold $208,000 Salaries and wages expense $ 61,000 Delivery expense 7,000 Sales discounts
Research paper between two different firms : In this assignment, you will prepare an in-depth comparative analysis research paper between two different firms operating in two different countries but which have similar challenges
Potential security threats on a personal computer : Identify some of the techniques an attacker might employ to access information on the system.
Identify a strategy and explain why or how it will assist : Identify a strategy and explain why or how it will assist José in reaching his goals - Scenario from The IRIS Center

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a generic class

Write a generic class (using Java generics) called Pair that stores two values of the generic type.  It should have a constructor to set them, two methods getfirst() and getsecond() to retrieve them.

  How are the packaged files viewed

How are several Java files packaged, Why is there a need for packaging java files and How are the packaged files viewed?

  Explain the inventory program to include an add button

Modify the Inventory Program to include an add button, a delete button, and a modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock

  Displays the calendar for the current month

Prepare a program that displays the calendar for the current month. You will use the Prior and next buttons to show the calendar of the previous or next month.

  Draw a picture with an appearance

You must use the given Rectangle and Oval classes to draw a picture with an appearance as close as possible.

  Finally make a java test class in your test class you must

finally create a java test class. in your test class you should at a minimum a construct 200 instances of each subclass

  Review of classes-objects-arrays and enhance for looping

Write Java code for class Produce that meets the listed requirements

  Allows the user to specify a triangle with three mouse press

Write a program that allows the user to specify a triangle with three mouse presses. After the first mouse press, draw a small dot. After the second mouse press, draw a line joining the first two points. After the third mouse press, draw the entir..

  Constructor that accepts a file name as its argument

Write a class with a constructor that accepts a file name as its argument. Assume the file contains a series of numbers, each written on a separate line. The class should read the contents of the file into an array, and then displays the following..

  What command is used to create a java archive

What command is used to create a Java archive? Describe using an example.

  1 comparing portions of strings write an application that

1. comparing portions of strings write an application that uses string method region-matches to compare two strings

  Learn how expressions can be evaluated at run-time

Write a Java program (a collection of Java classes) including a class named ExpressionCalculator that contains a static main method. This main method will prompt the user to enter a constant expression.

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