Solved: Let array A={4,10,3,9,18,22,2,45,27}, B={-1,-2,-3}…

$30.00

Category:

Description

Solved: Let array A={4,10,3,9,18,22,2,45,27}, B={-1,-2,-3}…

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!


error: Content is protected !!