Create list function to create the list with the integers

Assignment Help Computer Engineering
Reference no: EM132106382

This program will define various functions to process a linked list.

The main program will demonstrate that the functions work. Input: An input file contains an unknown number of integers.

Use a create List function to create the list with the integers in the info component of each list node.

Output: Use a printList function to output the info component of each list node. Other functions are:

1. findMax This function returns a pointer to the node which has the maximum info value.

2. addLast This function asks the user to input an integer, and inserts a new node containing that integer at the end of the list.

3. addFirst This function asks the user to input an integer, and inserts a new node containing that integer at the beginning of the list.

4. deleteMin This function locates the node with the minimum info value, and deletes it from the list.

5. sortListAscending This function sorts the list so the integers in the info components of the nodes are in ascending order.

6. addInOrder This function gets an integer from the user, and inserts a node containing that integer into its proper place in a list which is sorted in ascending order. (This function is not allowed to call the sortListAscending function!)

Reference no: EM132106382

Questions Cloud

Write a program to test your function : Your program should contain at least two functions: smallestIndex (as described in the book's directions) and a main function that prompts the user.
What modern day phenomena is a clear example : What modern day phenomena is a clear example of Ineffective Altruism? How could it be changed to make it effective?
Convert the matrix from the csv file into a uint : Read in the csv file and store the resulting matrix in a variable. Convert the matrix from the csv file into a uint8.
Program for developing non-verbal communication skills : 60 children, ages 3-5, are selected to participate in a program for developing non-verbal communication skills. The children were selected on the basis
Create list function to create the list with the integers : The main program will demonstrate that the functions work. Input: An input file contains an unknown number of integers.
Concerns or considerations for interpreting results : What are the special concerns or considerations for interpreting results when the dependent variable is a physiological measure
What is the us versus them mentality : What is the "Us Versus Them" mentality, including the concepts of in-group bias and out-group homogeneity?
Calculate and output the walls area : Prompt the user to input a wall's height and width. Calculate and output the wall's area.
Person suffering from addiction play : What if any part does a family or friend play in a person suffering from addiction play in that person getting clean? Being so close to the situation you would

Reviews

Write a Review

Computer Engineering Questions & Answers

  How many bits are there in the network part

how many bits are there in the network part and in the subnet part, respectively

  Define the mimo system

In matrix form, the detector inputs and the symbol estimates may be expressed as

  Analyze the major ethical and social issues raised

Analyze the major ethical and social issues raised by information systems

  Define sending emails from it and caused all sorts of mayhem

We saw a case a while back where someone used their yahoo account at a computer lab on campus

  What is a mission statement and what is a vision statement

What is a mission statement What is a vision statement What is a values statement Why are they important

  What is minimum security

Using the school library, other credible sources and proper APA formatting write 4-6 pages on the following as they relate to physical security.

  Prompts the user to guess the number

Develop an app that generates a random number and prompts the user to guess the number. When the user clicks the New Game Button, the app chooses a number in the range 1 to 100 at random.

  Implement the binary tree adt using an array list

Implement the binary tree ADT using an array list. Implement the tree ADT using a linked structure.

  Write a statement of scope

Write a statement of scope that describes the software. Be sure your statement of scope is bounded. If you're unfamiliar with robots, do a bit of research before you begin writing.

  Explain kerchoff six principles in detail

Auguste Kerchoff put forth a set of guidelines in the development of new algorithms or the evaluation of existing ones. While they are not required.

  Write your solution using dynamically allocated arrays

Even though this assignment can be coded with statically allocated arrays, please write your solution using dynamically allocated arrays.

  Program is internet based and it is expected to boost sale

Sunnyville Inc. is in the business of selling home appliances. Sunnyville Inc. has over 50 sales agents all over the country. The management at Sunnyville Inc. has decided to implement an online sales program. The new sales program is Internet bas..

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