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

  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 using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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