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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
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
question
Mathematics, 30.09.2019 09:10
question
Mathematics, 30.09.2019 09:10
question
English, 30.09.2019 09:10
question
Mathematics, 30.09.2019 09:10
question
Biology, 30.09.2019 09:10
Questions on the website: 13722367