Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

Solve z = x 2 + y 2 for y.

Answered: 1 week ago

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago