14. Write an object-oriented program in C++ to read a set of numbers to store it as a one-dimensional array; copy the elements in another array B in the reverse direction; find the sum of the...




14. Write an object-oriented program in C++ to read a set of numbers to store it as a one-dimensional array; copy the elements in another array B in the reverse direction; find the sum of the individual elements of array A and array B; store the results in an another array C and display all the three arrays.


15. Write an object-oriented program in C++ to read a four digit positive integer number n and generate all the possible permutations of those numbers digit by digit.


For example, for n = 7812 the permutations are 7821


8721


8712


2871


2817


(Hint: Read a number n and separate a number digit by digit and store it in an array, and then generate a permutation).










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here