Returns the number of even elements in the list

Assignment Help C/C++ Programming
Reference no: EM131283757

In this programming assignment you're asked to extend the circular Linked List of integers by adding the following new methods: CountEven, IncrementInfo, Sorted, EvenSublist, and addList, that are defined below.

int CountEven()
- Function: Returns the number of even elements in the list.
- Precondition: List has been initialized
- Postcondition: Function value = number of even integers in the list.

void IncrementList(int aValue)
- Function: Increments all lists' values by aValue.
- Precondition: List has been initialized aValue has been initialized
- Postcondition: Function value = elements of the list have their info incremented by a Value.

bool Sorted( )
- Function: Checks if the elements of the list are sorted in ascending order.
- Precondition: List has been initialized.
- Postcondition: Function value = true if list's elements are sorted in ascending order; False, otherwise.

CircularList EvenSubList()
- Function: Returns a sublist containing only the even elements.
- Precondition: List has been initialized
- Postcondition: Function value = a circular list containing only even ones.

void AddList(CircularList l2)
- Function: Adds all elements of l2 to the actual list.
- Precondition: Actual list and l2 have been initialized.
- Postcondition: Function value = elements of l2 are added to the actual list.

Need an expert programmer to finish coding the requirements from the assignment

Reference no: EM131283757

Questions Cloud

Identify the current stage of economic development : Explain how market capitalism, centrally planned capitalism, centrally planned socialism, and market socialism differ. Give an example of a country that illustrates each type of system.
What are acers prospects for gaining further share : How does the "global markets/local markets" paradox figure into Stan Shih's strategy for China?-  Acer is now the world's second-largest PC company, behind Hewlett-Packard. How can it sustain its growth?
Explain how property rights interact with externalities : Explain the concept of externalities and give examples of externalities related to enviromental issues. Explain how property rights interact with externalities, and mention two ways the government migh intervene to deal with exteranlities.
Does it search behavioral neuroscience : How many periodicals are searched, and what other kinds of publications are considered? Does your database search the Journal of Abnormal Psychology? Does it search Behavioral Neuroscience?
Returns the number of even elements in the list : You're asked to extend the circular Linked List of integers by adding the following new methods: CountEven, IncrementInfo, Sorted, EvenSublist, and addList
Formulate an hr strategic plan : 1. Formulate an HR strategic plan that will support Dean Blake's new organizational strategy. Your plan will make recommendations for HR activities in the areas of staffing, performance management, compensation, and employee relations (the ER sect..
Key elements in mcdonalds global marketing strategy : Identify the key elements in McDonald's global marketing strategy. In particular, how does McDonald's approach the issue of standardization?
Explain why simulations and field studies are used : Define extraneous variable and confounding variable. Describe two methods used to prevent extraneous variables from becoming confounding variables.
Word document along with the slides : Please make sure whatever you write will last at least two minutes. Speaker notes can be posted in a word document along with the slides.

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