/* * question9b.h * FINAL * By: John Stile * Purpose: * This is the header file for quesiton 9 part b. * Contains 9 or more fucntion headers */ ///[Function 1] ///////////////////////////////////////// // Introduction to user // void get_random_numbers( int * ); // Generate random numbers: takes int pointer, returns nothing ///[Function 2] ///////////////////////////////////////// // Gernerate random numbers (from 1 to MAX) void intro_to_user(void); // Splash Screen: takes nothing, returns nothing. ///[Function 3] ///////////////////////////////////////// // Input user sequence. void get_user_guess( int * ); // takes int pointer, returns nothing //[Function 4]////////////////////////////////////////// // Test validity of input in get_user_guess int good_guess(int * ); // takes int pointer, returns int. 0=fail, 1=pass //[Function 5]////////////////////////////////////////// // Calculate how many are correct void how_many_are_correct( int * , int * , int * ); // takes pointers to guess, answer, and correct arrays. //[Function 6]////////////////////////////////////////// // Show the user how they did in with 2 columns: void calculate_results( int * , int * , int * ); // takes pointers to guess, answer, and correct arrays, returns nothing //[Function 7]////////////////////////////////////////// // Calculate score Based on number of guesses. int are_all_elements_correct( int * ) ; // takes pointers to correct array, returns int if all are correct. //[Function 8]////////////////////////////////////////// // winner: Allow the user to store score in file void winner(int); // takes int //[Function 9]////////////////////////////////////////// // Winner: Allow the user to store score in file void store_data(int);