Create a method to read the scores

Assignment Help JAVA Programming
Reference no: EM131587973

This problem is to develop a simple application to compute the statistics of homework grades. The application should prompt the user to enter the total number of the scores of an assignment, and prompt the user to enter all of the scores.After reading in all those scores, the application should product the following statistics about the assignment.
The average score
The highest score
The lowest score
Here is a sample run:
Enter the number of scores: 5
Enter 5 scores: 67.50 94.80 88.50 76.90 99.00
The average score is 85.34
The highest score is 99.00
The lowest score is 67.50
Assignment Requirements
The following specific requirements must be met:
Create a method to read the scores and return the scores in a one dimensional array to the caller.
Create a method to calculate the average score of those scores passed into the method in a one dimensional array parameter and return the calculated average score to the caller.
Create a method to determine the highest score among those scores passed into the method in a one dimensional array parameter and return the highest score to the caller.
Create a method to determine the lowest score among those scores passed into the method in a one dimensional array parameter and return the lowest score to the caller.
The main method of the program must receive user input, call methods to obtain the required data, and finally display information to the user.
You should choose descriptive names for those methods and follow Java naming convention.
Each method must perform appropriate data validation on the parameters passed to the method if any.
You may choose to use either the console or the Java dialog boxes for data input and output.
If the number of scores is zero or a negative score is entered, your program should report the error and terminate the execution.

Reference no: EM131587973

Questions Cloud

What is sarah realized gain : If the stock of Super Brand is trading at $60.61 at expiration, what is Sarah’s realized gain?
Determine the npv for project-draw a timeline : Determine the NPV for this project. Should Brower build the plant? DRAW A TIMELINE
What happens to expected return on the stock : If Northern Sludge issues an additional $12 million of common stock and uses this money to retire debt, what happens to the expected return on the stock?
Make realistic assumpions about any missing data : Complete Dr. Beeper's federal tax return for 2015. Use form 1040 and Schedule E and form 8582. Make realistic assumpions about any missing data.
Create a method to read the scores : Create a method to read the scores and return the scores in a one dimensional array to the caller - Create a method to calculate the average score
Design a class to represent a credit card : This material is somewhat more theoretical than that of previous topics, so instead of writing a program for this assignment, you are going to work on a design
Write a complete java program called calculateaverage : Write a complete Java program called lCalculatell?uw'erage according to the following guidelines. The program prompts the user for ?ve to ten numbers oil on one
Prepare a functional java program : prepare a functional java program that I can run in my compiler (Netbeans) that allows you to control a running back with the arrow keys and avoid opposing play
Write a program that reads from a url : Review the three exercises that were discussed in the lectures - illustrates how to read from a URL - It reads each line from the given text file and displays

Reviews

Write a Review

JAVA Programming Questions & Answers

  Allow the user to display a work history report

The 'report screen' shall:Allow the user to display a work history report for an individual or for all employees for the two weeks prior to the report request.

  How do you figure out how to declare a variable

How do you figure out how to declare a variable? How do you know what type of variable to use? What is the best way to name a variable and why? What are the differences between an integer variable and a floating point variable? When and why do dat..

  Question a jsp expression can contain any java expression

question a jsp expression can contain any java expression that evaluates to aa string objectb java objectc primitive

  Method called wordlengths that accepts a scanner

Write a method called wordLengths that accepts a Scanner representing an input file as its argument. Your method should read from the given file.

  How much more that person needs to spend to qualify

Program that takes the amount a person has spent and determines the discount ($15 per $175 spent).

  Write a java program to demonstrate the use of iterator

Write a Java program (non-GUI i.e. Java class) to demonstrate the use of Iterator.Use Iterator to achieve these goals

  Write java codes to implement the viterbi algorithm

In this programming assignment, you are asked to write Java codes to implement the Viterbi algorithm for HMM Tagging

  Explain at least three scenarios where he is wrong

Explain at least three scenarios where he is wrong, that is, where users other than a file's owner need some kind of allowed access privileges

  Creat a class that saves the grades

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.

  Write an application that extends jframe

Write an application that extends JFrame and that displays a phrase in every font size from 6 through 20.

  Write a driver class that uses the computermicrobe class

You must create two Java files. One is called LastNameFirstNameWeek7Prog.java, and the other is called ComputerMicrobe.java.

  Graphical application for computing statistics

Write a graphical application for computing statistics of a data set. Supply a text field and button for adding floating-point values, and display the current minimum, maximum, and average in a label.

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