Question: C++ Problem 3 | Random Number Class | 40 Points Create a class called myNums that generates an array of random integers from 0 to

C++
 C++ Problem 3 | Random Number Class | 40 Points Create

Problem 3 | Random Number Class | 40 Points Create a class called myNums that generates an array of random integers from 0 to 100. It has the following two private variables numbers (an int pointer that holds the first address of the array of numbers) . size (an int that holds the size of the array) it has the following five public methods A default constructor that takes how many array elements to create. It creates memory for the pointer numbers, sets the size variable, and places an initial random number from O to 100 in each element of the numbers array. A destructor that frees up memory of the numbers array A copy constructor that copies data from one instance to another .A method that changes the random numbers in each element in the numbers array to another random number. This method does not require any input .A method that print outs the elements of the numbers array In the main function Create an instance amos of the myNums class that has 5 elements e Use the print method to print out the array elements in amos Create an instance john of the myNums class that copies data for the instance amos Use the change method to change the random numbers in the instance amos Use the print method to print out the array elements in amos and john s1Page

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!