Hello everyone. I have a few questions about this project that I need to code. And If you can please show me how the code should look I would very much appreciate it.
Write a program that can sort integers, decimals, and characters from ascending and descending orders.
The program has to use the following C++ features:
- Take input from user
- Use different data types
- Use if statement
- Use while or for loops
- Use arrays
- Define and call functions
- Pass array or pointers to function
- Use function overloading
- Present output to the screen
Now, for the different types like integers, decimals and characters, do I write a separate code for each one in ascending and descending order? Or do I need to incorporate all of them together?
Thank you for all of your help!