Create the following methods for the class MyArray. Submit Main.cpp. (other files if you decide to write your code using

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Create the following methods for the class MyArray. Submit Main.cpp. (other files if you decide to write your code using

Post by answerhappygod »

Create The Following Methods For The Class Myarray Submit Main Cpp Other Files If You Decide To Write Your Code Using 1
Create The Following Methods For The Class Myarray Submit Main Cpp Other Files If You Decide To Write Your Code Using 1 (101.81 KiB) Viewed 61 times
Create the following methods for the class MyArray. Submit Main.cpp. (other files if you decide to write your code using .cpp and "h) and a ReadMe.pdf file with screen result screenshot of each function. Address all the function calls in the "int main" in same order of of the following provide specific instructions for the user for the inputs. (ex: Please enter an element to find:-) Methods to Implement . • . . . . . Default Constructor for the class Constructor with array size (user input the size) • Destructor for the class Use random function to store values (ex: store 1000 numbers between 1 and 10000 range) Function to access the size Display the content of the array (Display contents as a table of 10 columns with contents left aligned) Function to Add an element at the beginning Function to Add an element at the end Function to Remove an element at the beginning Function to Remove an element at the end Function to Inverse the order of the elements in the array (perform this function after sorting the array) Function to Return the sum of the elements in the array Function to Return an array that contains numbers in sorted order (Display contents as a table of 10 columns with contents left aligned) Function to Return an array that contains the odd numbers only (Display contents as a table of 10 columns with contents left aligned) Function to Return the index of given element in the sorted array (func1. handle errors as well if item not found) Function to Return the index of given element in the sorted array (faster than func1 and explain how is it going to be faster than func1) . . . . . .
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply