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

  Engage the many components of planning the implementation

An individual project where you will engage the many components of planning the implementation of Windows Server 2008 Active Directory. With increased use of computer technology, many medical practices, clinics and doctor's offices are moving away fr..

  The minimal spanning tree algorithm

discuss the minimal spanning tree algorithm. Describe the advantages and disadvantages of this algorithm. List the circumstances best suited for the minimal spanning tree algorithm.

  Write a reservation system for an airline flight

Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional array of strings to maintain a seating chart. In addition create a array to be used as a waiting list in case the pla..

  Why the native operator will not work with classes

Why the native operator will not work with classes unless they have been properly overloaded

  Maintence personnel

Southern Air is considering purchase of new aircraft and has set aside $1.5B dollars for this. They have enough pilots to crew 30 new planes and enough maintence personnel to crew 40 new short range planes.

  Pixels down the right of the window

The blue and red values of the pixels across the top of the window are all the same, where the blue is at its maximum value while red is at its minimum value. The green values of the pixels down the right of the window are all the same, where gree..

  Write a program at level that will accept a lower case

Write a program at level 3 (Instruction Set Architecture Level) that will accept a lower case letter and output the uppercase version of the letter.

  Compute the values for the array

Write a program that: Sizes an array to hold 5000 values of type int. Using the rand( ) function, create random numbers from 1-1000 and place into the array.

  Problems related to math power

Write a public static function named power that takes in two integers, a and b, and returns a^b, the first argument to the power of the second argument. You may NOT use Math.pow(), because that would be boring.

  Prompts the user to enter a positive decimal number

Write a C++ program that prompts the user to enter a positive decimal number, then the program finds the sum of the first and second decimal digits.

  Class scope variables-helper methods

Design a C# Windows Application to compute the cost of manufacturing different objects. The object can be a cylinder, a cone or a prism with the equilateral triangular base. The user should enter the radius of the base (or the side of the base for..

  Program to not accept a negative birth rate, negative death

I need this program to not accept a negative birth rate, negative death rate, or a population less than 2.

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