Question: How does two arrays the size 10( int type). Get the input from user and store those values in each array. First have an array

How does two arrays the size 10( int type). Get the input from user and store those values in each array.

First have an array called R2D2 and copy the value from first array to R2D2.

Find the largest number, smallest number, get the sum and average in R2D2.

Display the largest number, smallest number, the sum and average for R2D2 array.

Second have an array called C3PO and copy the value from second array to C3PO.

Find the largest number, smallest number, get the sum and average in C3PO.

Display the largest number, smallest number, the sum and average for C3PO array.

Compare C3PO and R2D2 to see if they are the same.

Test data- 2 4 6 8 10 12 14 16 1 1 R2D2

2 4 6 8 10 12 14 16 1 1 C3PO

Display - Arrays are the same

Test data- 2 4 6 8 10 12 14 16 1 1 R2D2

1 3 5 7 9 11 13 15 2 2 C3PO

Display- Arrays are not the same

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!