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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started