in C++ Carry out the following tasks with an array: Allocate an array of ten integers. Put the number 17 as the initial element of the array. Put the number 29 as the last element of the array. Fill...


in C++ Carry out the following tasks with an array:



  1. Allocate an array of ten integers.

  2. Put the number 17 as the initial element of the array.

  3. Put the number 29 as the last element of the array.

  4. Fill the remaining elements with –1.

  5. Add 1 to each element of the array.

  6. Print all elements of the array, one per line.

  7. Print all elements of the array in a single line, separated by commas.

  8. Count how many elements are less than a given value (entered by user).

  9. Delete all elements that are less than a given value (entered by user).

  10. Place all elements that are less than a given value (provided by user) in another array.



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here