subject

1) Create a method that uses an array as parameter, and ask the user to fill the array with grades(assume double), which should go 1-100(validation) Use this header: public static void getGrades(double[] myGrades)
2) Create a method that takes an array as parameter and calculate the average of those grades(return)
Use this header: public static double getGradeAvg(double[] myGrades)
3) Make a method that show you the grades on the screen
public static void showGrades(double[] myGrades)
4) In your main method, create an array of 5 doubles with use of the methods you implemented to get the grades, calculate and show the average, and show each individual grade. Even if you could not make the methods you can still use the headers to do this part.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, swelch2010
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
image
Computers and Technology, 23.06.2019 11:30, kieante01
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, torresnoemi899
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
You know the right answer?
1) Create a method that uses an array as parameter, and ask the user to fill the array with grades(a...

Questions in other subjects:

Konu
Biology, 06.11.2020 02:20
Konu
Mathematics, 06.11.2020 02:20
Konu
Engineering, 06.11.2020 02:20