For this lab you are required to fulfill all requirements exactly as described in this provided document, no less, no more. Question: Today you are supposed to write a C++ program that will allocates an array of integers of size 10 (Use standard C++11 for the array declaration). Next it will prompt the user to enter 10 distinct integer values to be stored in the array that you just created, in the order they were read. Then, the program allocates an auxiliary array with the size of original array (10) and using the following two functions copies all the even numbers of original array in the auxiliary array followed by odd numbers. To do this you need to implement two functions as follows: 1- SeparateEven(int[], int[]): This function accepts the original array and auxiliary array as the input and copies all the even numbers of the original array in the auxiliary array. Then it returns the number of even elements copied form original array to the auxiliary array. 2- SeparateOdd(int[], int[], int): This function accepts the original array, auxiliary array, and number of even numbers in the original array as the inputs (this function has 3 input arguments), and copies all the odd numbers of the original array after the even numbers (that are already copied) in the auxiliary array. This function does not return any value. Your program should display the auxiliary array after calling the above two functions. All output must be formatted exactly as displayed in the two samples below. Please enter 10 integers in order: 14 265 48 11 21 54 88 90 713 7. The content of auxiliary array is: Odds 48 54 88 90 14 265 11 21 713 7 Evens Please enter 10 integers in order: 13 265 48 11 21 54 88 90 713 7.1 The content of auxiliary array is: Odds 22 12 44 92 163 9 23 35 121 71 Evens

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

Please help to provide the code of c++ correctly. Thank you so much!

Table Tools
Lab 4 Version 2
Word
MohammadReza Rejali
File
Home
Insert
Design
Layout
References
Mailings
Review
View
Help
Design
Layout
Y Tell me what you want to do
2 Share
Read this entire document before beginning your lab.
For this lab you are required to fulfill all requirements exactly as described in this provided document, no less,
no more.
Question: Today you are supposed to write a C++ program that will allocates an array of integers of size 10 (Use
standard C++11 for the array declaration). Next it will prompt the user to enter 10 distinct integer values to be
stored in the array that you just created, in the order they were read. Then, the program allocates an auxiliary
array with the size of original array (10) and using the following two functions copies all the even numbers of
original array in the auxiliary array followed by odd numbers. To do this you need to implement two functions
as follows:
1- SeparateEven(int[], int[]): This function accepts the original array and auxiliary array as the input and
wwwww
Mwww
copies all the even numbers of the original array in the auxiliary array. Then it returns the number of
even elements copied form original array to the auxiliary array.
2- SeparateOdd(int[], int[], int): This function accepts the original array, auxiliary array, and number of
even numbers in the original array as the inputs (this function has 3 input arguments), and copies all the
odd numbers of the original array after the even numbers (that are already copied) in the auxiliary array.
This function does not return any value.
Your program should display the auxiliary array after calling the above two functions.
All output must be formatted exactly as displayed in the two samples below.
Please enter 10 integers in order: 14 265 48 11 21 54 88 90 713 7J
The content of auxiliary array is:
Odds
48 54 88 90 14 265 11 21 7137
Evens
Please enter 10 integers in order: 13 265 48 11 21 54 88 90 713 7.J
The content of auxiliary array is:
Odds
22 12 44 92 163 9 23 35 121 71
Evens
+ 140%
Page 1 of 1
390 words
5:49 PM
רלמ11
Transcribed Image Text:Table Tools Lab 4 Version 2 Word MohammadReza Rejali File Home Insert Design Layout References Mailings Review View Help Design Layout Y Tell me what you want to do 2 Share Read this entire document before beginning your lab. For this lab you are required to fulfill all requirements exactly as described in this provided document, no less, no more. Question: Today you are supposed to write a C++ program that will allocates an array of integers of size 10 (Use standard C++11 for the array declaration). Next it will prompt the user to enter 10 distinct integer values to be stored in the array that you just created, in the order they were read. Then, the program allocates an auxiliary array with the size of original array (10) and using the following two functions copies all the even numbers of original array in the auxiliary array followed by odd numbers. To do this you need to implement two functions as follows: 1- SeparateEven(int[], int[]): This function accepts the original array and auxiliary array as the input and wwwww Mwww copies all the even numbers of the original array in the auxiliary array. Then it returns the number of even elements copied form original array to the auxiliary array. 2- SeparateOdd(int[], int[], int): This function accepts the original array, auxiliary array, and number of even numbers in the original array as the inputs (this function has 3 input arguments), and copies all the odd numbers of the original array after the even numbers (that are already copied) in the auxiliary array. This function does not return any value. Your program should display the auxiliary array after calling the above two functions. All output must be formatted exactly as displayed in the two samples below. Please enter 10 integers in order: 14 265 48 11 21 54 88 90 713 7J The content of auxiliary array is: Odds 48 54 88 90 14 265 11 21 7137 Evens Please enter 10 integers in order: 13 265 48 11 21 54 88 90 713 7.J The content of auxiliary array is: Odds 22 12 44 92 163 9 23 35 121 71 Evens + 140% Page 1 of 1 390 words 5:49 PM רלמ11
Expert Solution
steps

Step by step

Solved in 3 steps with 2 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