Find current elements in array

Assignment Help Other Subject
Reference no: EM132757380

Write a class with name intlist. This class will have an integer array arr (for simplicity define it with 100 locations) and an integer cnt as member data in private section. cnt variable will be used to keep the number of elements in integer array (arr). In public section of this class there will be following member functions with explained tasks:

(i) listcount() : returns the number of elements in arr array

(ii) addfirst(x) : locates integer x to the first position of arr. All current elements in array will move to the next location.

(iii) addlast(x) : locates integer x to the last free location.

(iv) removeall() : remove all elements of array

(v) removefirst() : remove first element of array. All current elemets in array will move to the preceding location

(vi) removelast() : remove last element of array.

(vii) remove(i) : remove element in index i.

Notice: While adding if maximum exceeds will give an error message. While removing if there is no element or if there is no elements in given index, it will give an error message

BY USING C++

Reference no: EM132757380

Questions Cloud

What can employees contribute to help the trainers design : Avondale Industries' avionics division asked the training and development office to assist them in implementing training on new equipment that would.
Describe the possible reasons for noisy data : What is noise? Describe the possible reasons for noisy data. Explain the different techniques to remove the noise from data.
How do firms use the cost of capital : How do firms use the cost of capital? What are some of the problems with estimating the cost of capital? The response must be typed.
What is the company normal fgh : 80% possibility that ASD Incorporated will have FGH of $2.00 and a 20% possibility that their profit will be $1.00. What is the company's normal FGH?
Find current elements in array : Write a class with name intlist. This class will have an integer array arr (for simplicity define it with 100 locations) and an integer cnt as member data in pr
What is the association normal fgh : 70% possibility that ASD Incorporated will have FGH of $1.50 and a 30% possibility that their profit will be $1.00. What is the association's normal FGH?
What will be your rate of return after one year : What will be your rate of return after one year if the price of Galaxy stock falls by 10%? The stock is expected to pay a dividend of 9 cents per share.
What is the mathematical mean return for drg normal stock : What is the mathematical mean return for DRG's normal stock? The yearly returns for DRG's basic stock throughout the long term 2003, 2004, 2005
Examine the descriptive features in the dataset : The table below lists a dataset containing details of policy holders at an insurance company. The descriptive features included in the table describe each polic

Reviews

Write a Review

Other Subject Questions & Answers

  Describe the potential public health effects

You oversee Disaster Management for Sentinel City. The healthcare team has just been notified that there was a tornado that ripped through Casper Park.

  Is this article truly a academic scholarly journal

Is this article truly a academic scholarly journal? What indicates that this is truly a academic scholarly journal , How can you tell if this particular article creditable and Indicate a few of the qualities of this article information that makes it ..

  Research and fact finding of Australian financial market

Research and fact finding of Australian financial market. Analysis of three financial management questions: (i) capital budgeting, (ii) capital structure

  How is ininate partner violence a male issue

How is ininate partner violence a male issue? What type of programming and interventions are necessary to stop violence against women?

  Evaluate the consequences of the boys actions

Evaluate the consequences of the boys actions

  Decision making model based issues

What decision making model do you prefer?

  How does one know if the sponsor of a website is reliable

Identify three important items to look for when appraising the credibility of a website author. How does one know if the sponsor of a website is reliable?

  Douglass-how do these two writers approach to literacy

How do these two writers' approach to literacy and writing compare? How does Douglass recast Franklin's ideals to fit the condition of an escaped slave?

  The impact on the investment community

The significance of senior executives certifying that all documents filed with the SEC are accurate and thorough.

  Effect of fear-aggression or anxiety on the specified beha

Explain the role of the nervous system. Describe the effect of fear, aggression, or anxiety on the specified behavior.

  Contemporary definitions of worthy and unworthy poor

This question deals with the historical and contemporary definitions of worthy and unworthy poor. Evaluate what populations might have been considered "unworthy" poor in earlier eras but considered "worthy" poor now.

  Discuss how you could help the family cope

Discuss how you could help this family cope and guide Philip to learn appropriate behavior. Group B Response. Will this behavior interfere with his interest.

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