Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started