Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Programming Assignment #2

Page 1 of 2

The Exam Statistics Program

Description

You are to write a program to compute statistics on a list of exam scores, the Exam Statistics Program (ESP). The input is the name of a text file that contains the number of scores followed by the list of scores. (See the example below.) You should then display the following information:

• The number of scores

• The minimum, maximum, and average scores

• The number of As, Bs, Cs, Ds, and Fs, using a 90-80-70-60 scale.

For full credit, you must use at least one function/method, and you must use an array to store the list of exam scores.

Sample Run

Below is an example of what your program may look like. It does not have to be identical. The user's input appears in italics (purple).

***Welcome to the Exam Statistics Program!!***

Please enter the name of your data file: esp.txt

Minimum score: 72

Maximum score: 92

Average score: 82.5

Number of scores by letter grade:

A: 1

B: 3

C: 2

D: 0

F: 0

There are 6 scores.

Here is the sample input file esp.txt:

6

88

77

92

82

84

72 MCIS 503 Programming Assignment #2 Dr. Jeremy Lanman

Page 2 of 2

Additional Requirements

Compute the median score in addition to what the program already does. To compute the median, sort the scores and the score in the middle is the median. If there is an even number of scores, average the two scores in the middle to obtain the median. So, in the sample score list above, the median would be 83.0.

Hand In

In a single MS Word document a listing (print-out) of your program source code and the print-out or screen shot of a sample run output

Notes

• Don't forget to write comments (javadoccompatible), and remember to indent properly.

• Include pre- and post-conditions for your functions/methods. (That is, the comments should state what the function does, and what it needs to do it.)

• Do this project in phases: first just get the data to read from the file, then do the easy statistics first (min, max, avg) and save the number of each letter grade for last.

• Your program should handle any number of scores (no upper limit). You may assume all scores are 0-100.

• Utilize the submission template provided in the course module.

• Start early!

Java, Programming

  • Category:- Java
  • Reference No.:- M91930543
  • Price:- $50

Guranteed 36 Hours Delivery, In Price:- $50

Have any Question?


Related Questions in Java

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As