Display a menu where you let the user pick an operation

Assignment Help Computer Engineering
Reference no: EM132109308

In this project you will be creating a linked list class to store integers. This class should be called LinkedList and should be in files LinkedList.cpp and LinkedList.h.

This should be a singly linked list with both a tail and a head pointer.

This class should implement the following methods:

A constructor to create an empty list

void reAppend(int) : that puts a new node at the start of the linked list

void appendNode(int) : puts a new node at the end of the linked list

void insertNodeInSortedOrder(int) : puts a node after the first node lower than it in the list [5 pts] void deleteNodeOfValue(int) : deletes the first node of a particular value in a list

void deleteNodeAtLocation(int) : deletes a particular element

int getNodeValueAtLocation(int) : returns the value at a particular node

void mergeTwoNodes(int a, int b) : takes elements in positions a and b in the linked list and adds their values together and puts the result in node a. It then deletes node b.

void swapNodes(int a, int b) : swaps the node values in positions a and b of the list
void removeAllDuplicates() : Go through the list and check for any duplicates. If a duplicate is found, remove the duplicates. After this function the list should have all singular values.

int numberOfNodes() : returns the number of nodes in the linked list
void displayList() const : that displays the entire list to the terminal
void deleteList() : delete the entire linked list, so remove all nodes

In your main.cpp implement a program that uses this linked list. Your program should first create an empty linked list and then go into a loop that starts by displaying the elements in the list (which will be of course empty to start).

Then display a menu where you let the user pick an operation to do on the linked list (one of the functions above). Do the operation, displaying any results that are appropriate so the tester can see that the operation was done. Include an option to quit when we are done.

To get the full points for an operation, your menu must work for that option and not simply have the function implemented in theory.

Reference no: EM132109308

Questions Cloud

Strategic surveying in the global market : Share a current event article that relates to strategic surveying in the global market place and the role of vitality measures.
Describe right to work laws : Describe Right to Work laws. Discuss the arguments for sustaining or abolishing the laws. Offer your opinion and argument for or against Right to Work laws
Explain how the reserve bank changes the interest rates : Explain how the Reserve Bank changes the interest rates and its effect on output in the economy. A very detailed answer will be appreciated
Describe the process you used to verify software : Describe the process you used to verify software is talking appropriately to your hardware.
Display a menu where you let the user pick an operation : Display a menu where you let the user pick an operation to do on the linked list.
Describe the objective of the lab based understanding : You can list any problems you encountered during the lab. Try to discuss why it occurred and how to get it right for the correct response, if you did.
Evaluating interactive systems and web-based applications : HS2031 - Human Computer Interaction (HCI) - HCI in-depth evaluation for websites - Identify and elaborate the main features of the websites
Describe the technology and approaches that would be used : Describe at least four, tools, technology, approaches, and/or methodology that would be used to accomplish the above project.
Describe at least two things you would have changed : Describe at least two things you would have changed concerning the above project tools, technology, approaches, and/or methodology used.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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