Create a file that contains the main function

Assignment Help Computer Engineering
Reference no: EM132194512

Write a c++ code and it has to work on linux machine so no conio.h....etc

Let's design a class "linked_list" that can store a list of integers. For example: 22(head)->10->7->13->

Each node contains a numeric value and a pointer to the next node. The class should at least have the following member functions:

1. Insert an element

2. Delete an element (delete by value)

3. Search an element (search by value)

4. Print the list

Now, design another class "sort_my_list" that has a linked list member variable. Now, add a function, local_sort(), to sort the list in increasing order. You can choose to implement either one of the following three algorithms discussed in class:

Selection Sort Insertion Sort Merge Sort

Remember: you cannot copy the linked list into an array/vector while you sort it.

Create a file that contains the main function. In your main, create an object of "sort_my_list" class. Define a menu to insert items in your list, delete items from the list, and print the list. Please carefully note that, when you print the list, we expect to see a sorted list of integers.

Reference no: EM132194512

Questions Cloud

Dimensions of the internet in its virtual market space : Explain the four main usage dimensions of the internet in its virtual market space?
What are the tension in the cable : A uniform beam having a weight of 60 N and a length of 3.2 m is hinged at its lower end and acted on by a horizontal force F of magnitude 50 N at is upper.
Strategy formulation process : What are the key challenges that face e-business during the strategy formulation process?
Build the simple linear regression model : If one is using X to predict new values of Y, should the business researcher rely on data for X which is not within the range of X data
Create a file that contains the main function : Design another class "sort_my_list" that has a linked list member variable. Now, add a function, local_sort(), to sort the list in increasing order.
Write a program that accepts the number of people : Write a program that accepts the number of people in each of the two age categories, performs the necessary computations.
Write a function that receives a source vector of integer : Write a function that receives a source vector of integer values and returns a vector containing the odd values from the source vector.
Determine the change in the entropy of the water : A freezer is used to freeze 1.0 L of water completely into ice. The water and the freezer remain at a constant temperature of T = 0°C.
How can an enterprise resource planning : How can an Enterprise Resource Planning (ERP) system help an US company transition from U.S. GAAP to IFRS?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe the different roles

define the different roles you think might be fulfilled by Web Services and Web Portals. What do you see as the major distinctions between the two from the perspective of provisions of eBusiness services? Which do you think is the more useful in t..

  Questionconfiguring a databasethere are two parts to this

questionconfiguring a databasethere are two parts to this work. the first part is to generate a database and some

  Compare the merits and demerits of 3g and 4g technology to

there are a number of cellular phone companies each serving their own unique geographical areas. likewise they each may

  Calculate the evaporation rate from a snow bank

Calculate the evaporation (sublimation) rate from a snow bank if the ambient air temperature is - 23°C, solar energy is falling on the bank at a rate.

  Describe the role of dns in enabling dynamic connections

Describe the role of DNS in enabling dynamic connections. Could DNS function with a fully centralized directory server architecture? Why or why not?

  What advantages exist in having the wireless network

As wireless networks gain popularity there is an increasing number of households using them for their home networking needs. What benefits exist in having a wireless network in your home instead of a wired network.

  Discuss due diligence in regulatory compliance

Discuss the role of due care and due diligence in regulatory compliance. What are some examples of companies you have heard about

  Explain what is the electronic communications privacy act

Explain what is the Electronic Communications Privacy Act (ECPA) of 1986? Use outside resources to assist with your answer.

  Do you know the major differences between the discrete and

question 1 do you know the main differences between a discrete as well as a continuous distribution? question 1 what

  Compute and plot 4 mean temperature profiles

Compute and plot 4 mean temperature profiles (temperatures a function of the time of the day) for each of four-periods of one year in a single sub-figure (January-March; April-June; July-September; October-December).

  Investigate the use of web services for the construction

discuss the statement "In the near future, Web application development will be dominated by Web Services, and we can envisage a time when most web application development will involve just the calling of existing Web Services".

  What is a ddos attack

What is a DDoS attack? In what two ways was the KrebsonSecurity.com DDoS attack unusual? What specific security weakness did the Mirai malware.

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