1. Read data for names and weights for 15 people from the console where there is a name on a line followed by a weight on the next line, like in names.txt.
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.
Names & weights sorted(ascending) by name. : Abe – 200, Michael – 275, Tom - 150
Names & weights sorted(ascending) by weight. : Tom – 150, Abe – 200, Michael - 275
32 freelancers are bidding on average $25 for this job
can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it | can do it |
hi, i am an experienced c,c++ programmer and developed programs for windows and linux based platforms. u can visit my profile to view my c,c++ related tasks.
I can do this for you in no time. I love working with C\C++ and i would love to do this task for you. If you want you can take a look at my C\C++ certificate in my portfolio if you are not sure that i am good at C\C++.
Hi, I am C, C++, C# and Data Structure Programmer. I am Electrical Engineer. Currently I am Instructor in Engineering University. Its very easy for me to implement doubly Linked List in C or C++. REGARDS
Hi there, Love your description, very precise. I already did something similar for my project. So I can give you a good project based what i did. Give me chance and you're not gonna regret. Have a nice day!
i am used to solve these type of problem. i learnt c and c++ in 11th standard and i am studying it currently in 2nd semester of my [url removed, login to view] is simplest type of problem