Implementation of the class integer implementation of the


“Google translation”

2 The assignment

2.1 Implementation of the class Integer

Class single data member must be an integer data type integer which must be declared as private. There should be a constructor that takes an integer value of type integer that inparameter and its value is assigned to data member. Declaring a "set" function so that the value of the private data member can be changed. Overloading operators greater than, so that objects of type Integer can compared with respect to the value they hold.

2.2 Implementation of the Array class The class will handle an array of objects of class Integer. Its data members must be a pointer of type Integer and one integer variable of type integer with the name and size they should be private. A "default" constructor to dynamically alokera memory for an array of type Integer with a appropriate number of elements and the number of elements stored in the data member size. Another kontruktor will be taking array size inparameter whose value should be assigned data member size and an array of size number of elements to be created dynamically. A dekonstruktor to release dynamic alokerat memory array. The class must have a member function that assigns randomly generated values for all elements in array, input parameters should be minimum and maximum random numbers to be generated. Implement member functions that perform a quicksort on the array. Declaring additional member functions when necessary.

2.3 Implementation of a testing program Write a test program that uses the Array class in which the functionality implemented in class will be tested. The user must specify the array size to be created and the minimum and maximum value of the random numbers to be generated. Print array values before and after the array sorted.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Implementation of the class integer implementation of the
Reference No:- TGS01268741

Now Priced at $40 (50% Discount)

Recommended (99%)

Rated (4.3/5)