/********************************* CISY 2311 : C/C++ Programming ASSIGNMENT 1 By: KEVIN YIN KEI CHAN *********************************/ // header includes #include #include using namespace std; // Prototypes void fill_random_numbers (int []); int count_odd_numbers (int []); void sort_array (int []); void swap_integers (int&, int&); void display_sorted_array (int []); void display_odd_count (int []); bool is_odd (int); // Define global constants const int ARRAY_SIZE = 50; const int RANDOM_MAX = 50; int main(void) { while(true) { // new seed srand(time(NULL)); // Initialize the array and fill it with random numbers int numbers[ARRAY_SIZE]; fill_random_numbers(numbers); // Output display_sorted_array(numbers); display_odd_count(numbers); cout << "\n========= Press ctrl-c to exit ========= \n\n"; sleep (1); // wait 1 second between literations } return 0; } void fill_random_numbers(int int_array[]) { // fill the array with random numbers for(int i=0; i