Question: Write a program (called assignment-1.cxx)-- (40 points) Write down the C++ program based on the following tasks. Creates an Array (1D array) and randomly

Write a program (called assignment-1.cxx)-- (40 points) Write down the C++ program    



Write a program (called assignment-1.cxx)-- (40 points) Write down the C++ program based on the following tasks. Creates an Array (1D array) and randomly assign values. Show the array with assigned values. Finds the largest element along with the index from the Array. (Using function) Reverse the array elements (using a function by returning a pointer/array). Show the reverse array in the main function. 10 18 12 45 30 11 41 34 For example, if Array is like above then output will be Randomly assigned values in Array: 10 18 12 45 30 11 41 34 Largest element is 45 Index number is 3 Array in reverse order: 34 41 11 30 45 12 18 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include iostream include cstdlib include ctime using namespace std Function to find the largest elem... View full answer

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 Programming Questions!