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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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