DESCENDING ORDER OF NUMBERS????? HELP????

closed account (z6f9LyTq)
Force the user to input 6 numbers, from 1 to 20.

· Sort these numbers into descending sequence in some kind of loop structure

· Create code that will eliminate duplicate entries as they are sorted. Code to eliminate duplicates should be part of the regular sort process (either before, during, or after the “sort code”).

· If the user enters 2 number 3’s, and 3 number 4’s…how can you indicate that you have 1 duplicate 3, and 2 duplicate 4’s. (You cannot use the same indicator for all duplicates).

· Show the original order of the numbers.
· Show the interim sequences of the numbers.
· After every comparison of two numbers PRINT the sequence….code a PAUSE at the bottom of the loop so you can watch the sort process.
· Show the final sequence of the numbers.


I LITERALLY HAVE NO IDEA WHAT TO DO IM STARING AT A BLANK SCREEN
Start with this

1
2
3
4
5
6
#include <iostream>

int main() 
{
	return 0;
}
closed account (z1CpDjzh)
Here:
http://www.cplusplus.com/reference/algorithm/sort/

But you wont get stage by stage stuff... if ya want stage by stage stuff do it your self.
This article helped me out a lot

Maybe it'll help you too.

http://www.cplusplus.com/articles/NhA0RXSz/
Topic archived. No new replies allowed.