Question: Using Java. Declare and create the following arrays. You do not need to initialize the arrays. An array named amounts that will hold 15 floating

Using Java.

Declare and create the following arrays. You do not need to initialize the arrays.

An array named amounts that will hold 15 floating point numbers.

An array named temperatures that will hold 2,365 floating point numbers. Use a constant for the size of the array.

An array named measurements that will hold floating point numbers. Use input from the keyboard for the size.

An array named weights that will hold floating point numbers. Use input from a file named pounds.txt for the size.

An array named grade that will hold 75 letters.

An array named rating that will hold 5,154 individual letters. Use a constant for the size of the array.

An array named initial that will hold letters. Use input from the keyboard for the size.

An array named letters that will hold letters. Use input from a file named grade.txt for the size. Declare, create and initialize the following arrays.

An array named numbers that will hold 10 whole numbers entered from the keyboard.

An array named ages that will hold 15,652 whole numbers. Use a constant for the size of the array. The numbers will be contained in a file named members.txt.

An array named length that will hold whole numbers. Use input from the keyboard for the size. The numbers will be contained in a file named data.txt.

An array named inches that will hold whole numbers. Use input from a file named limit.txt for the size and the values. The first value in the file will be the size.

Write the following methods.

A method named loadScores that will be passed the size of an array, prompt the user to enter the appropriate number of floating point grades, then return the loaded array.

A method named loadAges that will load an array of integers from a file, then return that array. Assume the first value in the file holds the size of the array. There are no parameters.

A method that will print the contents of an array of characters passed to the method.

A method that will print in reverse order the contents of an array of characters passed to the method.

A method that will return the number of vowels stored in an array of letters that is passed to the method.

A method that will print the contents of an array holding first names that is passed to the method.

A method that will print every other name stored in an array holding names that is passed to the method.

A method that will only print the odd values stored in an array that is passed to the method.

A method that will return the average of the values stored in an array that is passed to the method.

A method that will return the index of the largest value stored in a passed array of integers.

A method that will return adjusted average of an array of integers passed to the method. (Throw out the high and low scores.)

Use a method to determine the number of each letter grade when passed an array of integers. This method should use an array to store and return the results. Assume a standard grading scale.

Write an entire program that will:

Use a method to print your name. Be sure to call your method.

Use a method to load an array of integers from a file named grades.txt. The first value in the file will indicate the size of the array. Be sure to call your method.

Use a method to print the contents of the array. Be sure to call your method.

Use a method to return highest value in the array. Be sure to call your method.

Use a method to return the lowest value in the array. Be sure to call your method.

Use a method to determine the number of each letter grade when passed an array of integers. This method should use an array to store and return the results. Assume a standard grading scale. Be sure to call your method.

Use a method to print the high, low, grade counts, standard deviation and the contents of the array. Print the array 5 values per line. The high, low, passing grades, standard deviation and the array are passed to the method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!