Question: Description: For this assignment, you will write a program with an array of 1 0 values collected from the user. Pass the array to a

Description: For this assignment, you will write a program with an array of 10 values collected from the
user. Pass the array to a function and multiply each value by its index or position in the array. Store the
product in a new array and display the value. See the sample test data for examples.
Requirements:
1. Your array must contain 10 elements. Collect these from the user.
2. Print the original array to the console.
3. Create a function and pass the original array to it as a parameter.
4. Multiply the values of the original array by their index and store the product in an array local to
your function.
5. Print the second array (with the multiplied values) to the console.
6. Program must be documented with:
a.//Name
b.//Date
c.//Program Name
d.//Program Description

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!