Question: C++ Program: Assume the array is declared as follows: const int ARRAY_SIZE = 10; double myList(ARRAY_SIZE]; 1. initialize arrays with user input values. 2. Initialize

C++ Program: Assume the array is declared as follows: const int ARRAY_SIZE = 10; double myList(ARRAY_SIZE];

1. initialize arrays with user input values. 2. Initialize arrays with random values between 1 and 100 3. Print array 4. Copy array 5. Sum all elements 6. Find the largest element and the smallest element in the array 7. Find the smallest indext of the largest element 8. Random suffling: in many applications, you need to reorder elements in the array randomly. This is called shuffling 9. Shift elements: sometimes, you need to shift the elements left/right. (Example: you may shift the elements in one position to the lft and fill the last element with the first element. 10. Simply coding: arrays can be used to simplify coding for certain tasks. (Example: you want to obtain the english name of a given month by its number. If the month names are stored in any array, the month name for a given month can be accessed simply via the index.

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!