Write a program to compute statistics on a list of exam

Assignment Help JAVA Programming
Reference no: EM131176130

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!

Reference no: EM131176130

Questions Cloud

Behavior-attitude-motivation-stress and decision making : Self evaluation Exercise detailing how you see yourself in regards to the behavior, attitude, motivation, stress, and decision making. What motivates you most in the current job? What techniques have previous/current bosses used to motivate you and h..
How good are your communication skills : Consider the results that you received on all of the self-assessments you have taken so far this term and the culture of your organization. Where are the areas of conflict? How do you work through these conflicts, and what aspects of the culture keep..
Write a program of the dating game : The Dating Game Table of Contents for each section of this submission (i.e. Source Code listing, screen captures and UML design) here….Also, may include Javadoc source here.
Write a program that determines the day of the week : You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following interface and main program.
Write a program to compute statistics on a list of exam : 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.
Write the exam statistics program : Programming Assignment #2 The Exam Statistics Program Include a Table of Contents here... * Assignment #2: The Exam Statistics Program
Design programs that communicate with web servers : Design programs that communicate with Web servers and server-side applications through the Hypertext Transfer Protocol (HTTP). Design Java programs that use the Structured Query Language to query and update relational databases. Describe the Java Ser..
Provide a detailed hypothetical mission : Provide a detailed hypothetical mission and value statement for the hospital. Provide a rationale for the development of your particular mission and value statement.
Find the number of grains in a 1 square inch area in matlab : Write a MATLAB® function called num_grains to find the number of grains in a 1-square-inch area (N) at 100 3 magnification when the ASTM grain size is known. 234 Chapter 6 User-Defi ned Functions (b) Use your function to find the number of grains for..

Reviews

Write a Review

JAVA Programming Questions & Answers

  String as its parameter and returns the length

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.A word is a sequence of one or more non-space characters (any character other than the space character).

  Output the number of tails using the constant array

Assume that this program compiles and runs. Assume that the user enters 5 0 (separated by a space) for input. What is the output. As always, be precise when showing your output. Output the number of Tails using the constant array for the "Tails" h..

  Why restriction is necessary for recursive descent parsing

The second restriction is that the grammar must not require more than one token look ahead. Give an example of a production that does not have this property. Explain why this restriction is necessary for recursive descent parsing

  Write a loop that will print out the value

Given the subsequent code segment that reads in a String str - Write a loop that will print out the value entered into str in reverse.

  The continual rise in popularity of php as a solution

Question: With the continual rise in popularity of PHP as a solution to e-commerce applications and the tendency to protect intellectual property, just how open do you think the future will be as far as Web application development is concerned? For t..

  Write a program that reads a file name from the keyboard

Write a program that reads a file name from the keyboard. The file contains integers, each on a separate line. The first line of the input file will contain the number of integers in the file. You then create a corresponding array and fill the array ..

  Write a java program using array to auto-grade exams

Write a JAVA program using 2D Array to auto-grade exams. For a class of N students, your program should read letter answers (A, B, C, D) for each student.

  Implement savings account using locks and conditions

A savings account object holds a non-negative balance - Use a shared counter protected by test-and-test-and-set lock. Each thread locks the counter, increments it, releases the lock, and repeatedly reads the counter until it reaches n.

  Bullpart 1 several types of point of interests poi such as

bullpart 1 several types of point of interests poi such as - 1 petrol station 2 taxi stand 3 atm 4 hospital and 5

  Eligible for garbage collection

When is the B object, created in line 3, eligible for garbage collection - There is no way one can be absolutely certain.

  Report the last letter of each word in the string

Write a sequence of Java statements that report the last letter of each word in the string.

  Point of sale terminal

a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..

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