**Question-1: 
Write a program to sort in ascending order random entered numbers by user using Linked Lists.
- Size of LL is not limited
- Entering numbers should be stopped by entering '0' (zero)
- Sort entered numbers using any sorting algorithm (Bubble, Selection or Insertion sort)
- Display sorted numbers in horizontal line

**Question-2:
Write a program to sort in ascending order students according to ID numbers and in descending order students marks(grades) using Doubly Linked List.
- Get three information as: ID number, Student name and one student Mark from user
- Show separately two sorted data:
               - Sorted data (ID, Name, Mark) in ascending order according to students ID
               - Sorted data (ID, Name, Mark) in descending order according to students Mark
- Entering data can be stopped in any style of programming as: entering negative number, '0', or 'Y' and 'N'...
- Use any sorting algorithm (Bubble, Selection or Insertion sort) to sort data****

Recommended Answers

All 4 Replies

Okay. All done. That wasn't to bad.

Did you have a question?

Can you please solve them , because i really want there answers please

There are lots of people here who will freely give their time to help you become the best programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

Do you know how to code a working shell program in C++ ?

Do you know anything about using a C++ struct (or class) ...
to hold the data for each Student?

Do you know how to use the C++ library list (i.e. a double linked list) ?

Do you know how to code a compare function for the C++ list sort ?

If you can answer yes to all the above, then you are ready to code.

*Question-2:
Write a program to sort in ascending order students according to ID numbers and in descending order students marks(grades) using Doubly Linked List.
- Get three information as: ID number, Student name and one student Mark from user
- Show separately two sorted data:
- Sorted data (ID, Name, Mark) in ascending order according to students ID
- Sorted data (ID, Name, Mark) in descending order according to students Mark
- Entering data can be stopped in any style of programming as: entering negative number, '0', or 'Y' and 'N'...
- Use any sorting algorithm (Bubble, Selection or Insertion sort) to sort data*

In any case, there are numerous examples of similar problems ...
all over the web ...

like the example here:

http://developers-heaven.net/forum/index.php/topic,2586.0.html

If you need to code your own list, you could first solve your problem using the C++ library list ...

Then code / test your own list ... and sub that in when it is all debugged and tested to be ok.

Here is a little tutorial that might help you to get started ...

http://developers-heaven.net/forum/index.php/topic,2606.0.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.