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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Use C++ program.
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
Transcribed Image 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
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY