Question: Create a program in java utilizing an array to find the product of a given amount of numbers (integer values). You should have a class
Create a program in java utilizing an array to find the product of a given amount of numbers (integer values). You should have a class named ArrayCheck and and program named ArrayProd.
ArrayCheck Class:
- Should not have a data field
- Should only use the default Constructor. (no Constructor needs to be created.)
- Should contain a method to check the if the size of the array given by the user is between 1 and 10 inclusive.
- Should contain a method to check the numbers entered into the array by the user to see that they fall between 1 and 50 inclusive.
ArrayProd Program Class:
- This is a COMPLETE program.
- Should prompt the user as to the purpose of the program
- Should create an array of a size given by the user. (number of elements)
- Should hold in the array the user's input for the numbers they want to multiply.
- Should multiply the numbers and hold them in a variable named product.
- Should print out the numbers held in the array along with their indices.
- Should print out the product of the array numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
