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.
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...
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbffc8009-8390-4f34-9071-c23bb9432857%2F36d3dae7-4484-442b-8ff6-c92a646abaa4%2Fz3kqz9h_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
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)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY