Implementation of the class integer

Assignment Help C/C++ Programming
Reference no: EM13962277

“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.

Reference no: EM13962277

Questions Cloud

Recognizing and crediting the works : How can you as a doctoral level researcher balance producing your own original research with recognizing and crediting the works you use as your research foundation?
Draw the b-h characteristic for a ferromagnetic material : State the meaning of permeability, write down the expression for the permeability of free space, and indciate how it was developed from the Biot-Savart Law.
Evaluate project outcomes : Develop the tools necessary to educate project participants and to evaluate project outcomes (surveys, questionnaires, teaching materials, PowerPoint slides, etc.).
What is the spring constant of the bungee cord : A 75 g bungee cord has an equilibrium length of 1.20 m. The cord is stretched to a length of 1.80 m, then vibrated at 20 Hz. This produces a standing wave with two antinodes. What is the spring constant (k) of the bungee cord?
Implementation of the class integer : Implementation of the class Integer, Implementation of the Array class The class will handle an array of objects of class Integer.
Extend the life of your teeth : Studies show that brushing every day with Gleam Toothpaste will extend the life of your teeth. This is an example of what fallacy?
Determine tension in the left inclined ections of the wire : A steel wire (8 m long and 60 g mass) is clamped between two parallel walls. Two equal masses are hung from the wire at equal distance from each end. The left and right sections of the wire are 2m long and make an angle of 40 degree with each wall..
System implementation : You can use Internet resources, peer-reviewed journals, and reputable, published articles, and you may interview an executive of a healthcare facility that has implemented an electronic medical record system/electronic health record system or similar..
What are some practices an employer should avoid : What are some best practices for conducting performance appraisals? What are some practices an employer should avoid

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Assign passed value to function to return value

Assign passed value to this member and another function to return value. Your main should read the integer from an input data file, and write the output to the output data file.

  What are data declaration statements

I need an example of a flow chart and specification sheet of a C program.

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program that computes the sum of all the odd numbers

Write a program that computes the sum of all the odd numbers between 1 and 99. Write a program that loads a word into register $8.

  Write a program to compute and print the mean

Write a program to print a report that lists the average power output for the the first week, the second week, and so on. Print the information in the following format

  What tasks are involved in designing database table

WHAT IS THE NAME FOR COLUMN THAT UNIQUELY IDENTIFIES A RECORD?

  Android activity program

Design an app with a single activity that shows the following information about that activity every time that activity is visible to the user. This information should be shown in the layout of that activity

  Hierarchical control using player/stage simulator

In the Nested Hierarchical Controller, the PLAN module consists of a Mission Planner, a Navigator, and a Pilot. The Pilot connects with the ACT module to execute the drive and steering commands that cause the robot to move along a path segment.

  Write a program that prints the day number of the year

Write a program that prints the day number of the year, given the date in the form month-day-year. For example, if the input is 1-1-2006, the day number is 1.

  What is difference between while statement and do statement

What is the relationship between an event-listener interface and an event-adapter class? What is the difference between a while statement and a do statement?

  Write a function that accepts an integer parameter

Write a function that accepts an integer parameter and returns its integer square root. The function should throw an exception if it is passed an integer that is not a perfect square. Demonstrate the function with a suitable driver program

  Declare and define constructor

Declare and define constructors and Declare and define destructors - Describe what is an attribute or data member of a class

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd