Question
Let array A={4,10,3,9,18,22,2,45,27}, B={-1,-2,-3}, C={100,200,300} Write a program to: (a) Separate array A into two arrays: Array E contains the even values and array O
Let array A={4,10,3,9,18,22,2,45,27}, B={-1,-2,-3}, C={100,200,300}
Write a program to:
(a) Separate array A into two arrays: Array E contains the even values and array O contains the odd values. Display all arrays in a column format.
(b) Find the largest element in array A.
(c) Find the sum of all the values of the elements in A.
(d) Join the arrays A, B, and C into one array D=[A B C].
(e) Sort array A in an increasing order.
We use the program Visual Studio for C++ programming. If you can help me out with this problem for my lab I would really appreciate it. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started