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

  Reads contents of two vectors

Write a program that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Determine the output displayed when the button is clicked

Determine the output displayed when the button is clicked. Assume the five lines of the file Dates.txt contain the numbers 1492, 1776, 1812, 1929, and 1941 and the file is in the appropriate folder.

  A java program where the user designates

a java program where the user designates how many games they would like to play (for example user inputs 10 games) then they play the game, if lets say there is a tie after 10 games the game continues until either the user of the computer wins by 2

  Modify your server to make it multithreaded your server

modify your server to make it multithreaded. your server should allow more than one client to connect and request

  Develop the game using the concepts of cohesion

Develop the game using the concepts of Cohesion, Coupling and RDD, i.e., responsibility-driven design.

  Calculate rental fee for different types of borrowable media

Assume that there is an abstract class called Vehicle, which has two concrete subclasses, Car and Truck. There is also an interface Loadable, which only Truck implements - calculate a rental fee for different types of borrowable media (e.g. books,..

  Create a user interface for a library application

Create a user interface for a library application that allows the user (i.e., the Librarian) to enter Book objects.

  Algorithm analysis with advanced data structures

Algorithm Analysis with Advanced Data Structures, Your good friend, a Rock Star, asked you to create a Time Manager app for him, The Rock Star performs gigs at certain dates, all around the country - at most one gig per day

  Design a class named linearequation

(Algebra: 2 X 2 linear equations) Design a class named LinearEquation for a 2 X 2 system of linear equations.

  The reference to the abstract class

Explain what happens when the reference to the abstract class X is used to execute method M1( ). X obj = new Y( ); obj.M1( );

  Implement a javascript program for the validation case

Write a JavaScript program for the validation case using the RegExp method - implement a JavaScript program for the validation case

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