Question: Create two lists from 1 to 1 0 values. Each value should be a random number generated value from 1 to 1 0 . Create

Create two lists from 1 to 10 values. Each value should be a random number generated value from 1 to 10. Create a function to generate these lists. This function will have to be called twice from main(). Once for each list. The number of elements per list is to be input by the user and be from 1 to 10, so pass that value into the generate list function as a parameter. Do not allow 0 or negative input for the number of elements.
Write two more functions, one to add the two lists of corresponding indexed values together and one to multiple the two lists of corresponding indexed values and store the results in a new list and return the new list.

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 Programming Questions!