Project #90264 - C++ HW

Homework

Due: Sunday11/2/15 by 11:55

Objective:

  1. Become familiar with the use of Pointers in C++

  2. Develop familiarity of using functions to process Pointers

 

Description:
Develop the object intArray that creates and manages an array of integers by the use of pointers. The intArray object will implement a number of useful manipulation of arrays including insert, delete, add, equal, and etc.  These functions will limit the use of an array to proper handling. For example these functions will eliminate the possibility of overstepping the boundaries of an array.  

Specific Requirements:

Your object should satisfy the following criteria:

  1. Should be named intArray
  2. Should contain a default constructor that will set the data pointer to null and size to 0.
  3. Should contain an alternate constructor that will accept initial size and value for the array. If the initial value is missing, a default value of 0.
  4. Should contain an alternate constructor that will accept an array and create an object equal to the array. 
  5. The parameter that holds the size of the array should be private.
  6. Should contain a size method that will return the size of the array. 
  7. Should contain a set(index, value) method that will set the data[index] = value.
  8. Should contain a get(index) method that will return data[index].
  9. Both set and get methods should exit the program if index is outside of the array boundaries. 
  10. Should contain copy method that will copy one intArray into another. 
  11. Should contain equal method that will return true if two arrays are equal in size and content. 
  12. Should contain add and subtract methods that will add or subtract one intArry into/from another.

Subject Computer
Due By (Pacific Time) 11/01/2015 04:00 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy