Task 3: Create 4 arrays of type integer having size of 11 and assign values to only 2 arrays using for loop. • Once values are assigned to 2 arrays than you guys have to copy the values/element from...

Use C++ program.Task 3:<br>Create 4 arrays of type integer having size of 11 and assign values to only 2 arrays using for<br>loop.<br>• Once values are assigned to 2 arrays than you guys have to copy the values/element<br>from both arrays and assign/paste those values to third and fourth array.<br>• After assigning values to third and fourth array from first and second array. Display<br>elements/values of array3 and array4.<br>Array1:<br>2<br>4<br>6<br>8<br>9.<br>10<br>13<br>16<br>89<br>Your id<br>009<br>number will<br>be stored in<br>this index of<br>array<br>Array2:<br>|1<br>Your id 2<br>number<br>will be<br>34<br>8<br>89<br>11<br>34<br>07<br>stored<br>in this<br>index<br>of array<br>Note you have to assign these values to array1 and array2 which I have shown<br>above.<br>Array3:<br>Array4:<br>Array1 elements/values will be copied to array3.<br>• Array2 elements/values will be copied to array4.<br>In the end the array 3 and array4 will have the same elements/values as array1 and array2.<br>Output: Should be as given below: Note here I have taken random value but you have to<br>enter the same values which I have inserted in array1 and array2.<br>*** First Array *<br>Enter element in arrayl at index e-3<br>Enter elenent in array1 at index 1 - 2<br>Enter element in arrayi at index 2- 4<br>Enter element in arrayl at index 3 - 5<br>Enter element in arrayl at index 4 - 6<br>Enter element in arrayl at index 5 - 8<br>Second Array<br>Enter element in array2 at index e- 12<br>Enter elenent in array2 at index 1 - 14<br>Enter element in array2 at index 2 - 366<br>Enter element in array2 at index 3 = 34<br>Enter elenent in array2 at index 4 = 5<br>Enter element in array2 at Index S 6<br>Displaying elesents of array3<br>3 2 45 6 8<br>Displaying elesents of array4<br>12 14 366 34 5 6<br>

Extracted text: Task 3: Create 4 arrays of type integer having size of 11 and assign values to only 2 arrays using for loop. • Once values are assigned to 2 arrays than you guys have to copy the values/element from both arrays and assign/paste those values to third and fourth array. • After assigning values to third and fourth array from first and second array. Display elements/values of array3 and array4. Array1: 2 4 6 8 9. 10 13 16 89 Your id 009 number will be stored in this index of array Array2: |1 Your id 2 number will be 34 8 89 11 34 07 stored in this index of array Note you have to assign these values to array1 and array2 which I have shown above. Array3: Array4: Array1 elements/values will be copied to array3. • Array2 elements/values will be copied to array4. In the end the array 3 and array4 will have the same elements/values as array1 and array2. Output: Should be as given below: Note here I have taken random value but you have to enter the same values which I have inserted in array1 and array2. *** First Array * Enter element in arrayl at index e-3 Enter elenent in array1 at index 1 - 2 Enter element in arrayi at index 2- 4 Enter element in arrayl at index 3 - 5 Enter element in arrayl at index 4 - 6 Enter element in arrayl at index 5 - 8 Second Array Enter element in array2 at index e- 12 Enter elenent in array2 at index 1 - 14 Enter element in array2 at index 2 - 366 Enter element in array2 at index 3 = 34 Enter elenent in array2 at index 4 = 5 Enter element in array2 at Index S 6 Displaying elesents of array3 3 2 45 6 8 Displaying elesents of array4 12 14 366 34 5 6
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here