Perdes

Sorting.cpp

Feb 7th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <vector>
  4. #include "Tests.h"
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. Tests tests;
  11. tests.IntegerSorter();// test object
  12. system("clear");
  13. cout << "Sorting Program\n" << endl;
  14.  
  15. cout << "Test 1: Sorting Integers" << endl;
  16. cout << "Test 2: Sorting Float Numbers" << endl;
  17. cout << "Test 3: Sorting Integers and Floating Point numbers" << endl;
  18. cin.get();
  19.  
  20. return 0;
  21. }
  22.  
  23. //REQUIREMENTS //
  24. //1. Sort a finite amount of real numbers. (Create an algorithm)
  25. //1a. Can sort integers and floating point numbers
  26. //2. Sort just floating point objects
  27. //a. real numbers
  28. //b. negative zero
  29. //c. negative infinity
  30. //d. posiive infinity
  31. //e. NaN objects
  32. //3. Can sort a list of length 0 - Return error
  33. //4. Can sort a list of length 1
  34. //5. Can sort a list of length 2
  35. //6. Can sort a list of variable length
  36. //7. Can sort a list with at least two equal elements
  37. //8. Times the sorting algorithm by any machine implemented method
  38. //9. Gives a table of time versus number of elements sorted
  39. //10. Gives a graph of time versus number of elements sorted
  40. //11. Bonus for original work or conventional work done exceptionally well
  41. //12. Report in PDF file
Advertisement
Add Comment
Please, Sign In to add comment