Build a list for the data maintained in ascending order

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

Please help me in C++ and make sure it doesn't have any wrong

1. Read data for names and weights for 15 people.

2. Your program will build a list for the data maintained in ascending order based on both name and weight via a doubly linked list.

3. This dll will use one pointer to keep weights in sorted order, and use the other link to keep names on sorted order.

4. You need to build the list as you go maintaining this ordering, so at any time a print method was called it would print the related field in order. (This means nodes are added to the list in sorted order, elements are not added to the list followed by a sort called on the list.)

For example after 3 elements are added for (Name - Weight):

Michael - 275, Tom - 150, Abe - 200.

Output:

Names & weights sorted(ascending) by name. : Abe - 200, Michael - 275, Tom - 150

Names & weights sorted(ascending) by weight. : Tom - 150, Abe - 200, Michael - 275

Reference no: EM132095841

Questions Cloud

A program to convert from celsius to fahrenheit : The sample program provided below should be used as a starting point, and can be typed in full as seen.
Design an algorithmic solution for quadratic equation : Design an algorithmic solution for determining whether the roots of a given quadratic are real or complex. Implement your solution in three ways.
Internet business with a couple of friends : Assume you run an internet business with a couple of friends from college your company sells ticket to concerts and sporting event
Find the force exerted by the water : Find the force exerted by the water on a 2 m 2 plane surface of a large stone placed at the bottom of a sea 500 m deep. Does the force depend.
Build a list for the data maintained in ascending order : Your program will build a list for the data maintained in ascending order based on both name and weight via a doubly linked list.
Competitors and harm to competition policy : "There is a crucial distinction between harm to competitors and harm to competition policy should seek to protect the latter not the former.
Calculate the radius of the given orbit for a muon : Muons are very similar to electrons, having the same charge and spin, but they have a mass 207 times greater. when muons are captured by an atom.
What is the connection between crime and unequal access : 1. What is the connection between crime and unequal access to basic services? Explain at least four connecting factors.
What will happen to the brightness of the lamps : The circuit shown in the diagram contains a battery B, a rheostat Rh and two identical lamps Pand Q. What will happen to the brightness of the lamps.

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