The numbers should be generated using the rand function use


Write a program that illustrates your knowledge of pointers and objects. Create a program that creates an array of objects. Create an array of pointers to these objects. Use a for loop to create the objects and load the values. The numbers should be generated using the rand() function. Use a while loop to list out the values using the pointer array.

The data attributes should be:

int value; char 'E' or 'O' for even and odd.

Have a function that determines whether the number is even or odd.

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The numbers should be generated using the rand function use
Reference No:- TGS0646400

Expected delivery within 24 Hours