ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 11 Weeks Ago, 1 Day Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 29 May 2017 My Price 8.00

Write a program to create a class IntegerArrayList

I have this programming assignment. Usually our teacher gives us an outline to help us get started. I was hoping to see if anyone could help me in making an outline to get me started on the assignment. 

 

1COMP 3000: Assignment 4Due: 11/17/2015 at 11:59 PMPoints: 100Note: You do not need to submit hard copies.Goals:1.Learn to use pointers.2.Learn to create your own data structure.3.Create a library class that can be used by other programmers.Write a program to create a class IntegerArrayList, which provides all the functionality on thearray. This class should provide the functionality to create and maintain a list of integers usingarray as the base data structure.The structure of the class should be as follows:Member Variables:intArrayThis is the array containing the list of integers.capacityIt holds the capacity of the array list.countIt keeps the count of the occupied locations in the array.Constructors:IntegerArrayList()Constructs an empty list of initial capacity of 10.IntegerArrayList(int capacity)Constructs an empty list of initial capacity ofcapacity.Functions:intadd(int item)adds the item to the next available location, returns the current count of theelements in the array list.intremove(int location)removes the item located at location. Returns the removed item.boolcontains(int item)returns true if the list contains item, else returns false.intget(int location)returns the item located atlocation.If the location is greater thancount. Returns-1.boolisFull()returns true if the list is full, i.e. if capacity== count.boolisEmpty()returns true if the array list contains no element.voidprintList()prints all the elements in the list.boolset(int location, int item)replaces the item located atlocationwithitem.Returns true if the operation issuccessful, else returns false.

Attachments:

Answers

(11)
Status NEW Posted 29 May 2017 03:05 AM My Price 8.00

-----------

Not Rated(0)