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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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