Write the following functions for a linked list program

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

Please help. Show this works in a compile window screen shot if possible. I will upvote clear detailed response. Thanks!

Write the following functions in C++ for a linked list program. Use separate .cpp main file for calling the functions to show they work.

A node.cpp and node.h for the function headers and definitions for the singly linked list functions. Use a doublenode.cpp and doublenode.h file for the function headers and Definitions pertaining to doubly linked list functions.

The functions that need to be written are, create a new node. This can only be called once, since it's the first node.

2. Insert node to head,

3. Insert node to tail,

4.remove node from head, 5. Remove node from tail,

6. Print list, and

7. Show statistics,(this should show the smallest value, largest value, total sum, and average of the list).

Finally the doubly linked list need to have a function that prints the list in reverse.

Some other error checking for functions. If the "create new node function" hasn't been called yet, the functions 2,3,4,7 and 5 should give an error.

When the "create new node function" is created, it should ask the user for a number to store in the new node.

If you try to call the "create new node function" a second time, it should give an error stating there are already nodes in the list.

Reference no: EM132096066

Questions Cloud

Show the result of inserting all of the elements : Show the result of inserting all of the elements using quadratic probing to resolve collisions. (Place null in the unused locations.)
How will electromycycle choose vendors and interact : How will ElectroMyCycle acquire, configure, and audit computer systems and networks? How will ElectroMyCycle choose vendors and interact with them?
Technological and Strategical planning in New Ventures : Prepare a Mini Research project on the given topic. Topic: Technological and Strategical planning in New Ventures for solving Business start-up issues
Create a random sample of size 1000 from the diamonds data : Create a random sample of size 1000 from the diamonds data. Draw the scatterplot of carat vs log(price), color coded by cut.
Write the following functions for a linked list program : Write the following functions in C++ for a linked list program. Use separate .cpp main file for calling the functions to show they work.
Suggest a subset selection method and a shrinkage : Suggest a subset selection method and a shrinkage method that could be used here.
Analyze the following algorithm s and provide its worst case : When searching an array with 1,048,576 elements, how many comparisons will there be (at most) using binary search?
How many units on average while holding x2 constant : Suppose a multiple regression model is given by y = 4.44X1 -9.29X2 + 39.67. How do I determine what an interpretation of the coefficient of X1 be if X1
What are your thoughts about the intervention employed : What health state/health status and population resonated with you from the video - what was the primary determinant influencing their health state/health status

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