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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!