/* Ski Wax Header File */ /* Wax Colors */ typedef enum { yellow, red, violet, blue, green, white } waxcolor; /* Wax Varieties */ typedef enum { special, standard, extra } waxvariety; /* Logical (boolean) type */ typedef enum { false, true } boolean; /* function prototypes */ /* Determine if the user's input is valid Return true if the input data is in the proper range, false otherwise. */ boolean is_valid_data(int temperature, char snow_condition); /* Determine the appropriate wax color for a given temperature. Precondition: -50 < temperature < 100 Input Parameter: temperature (int) in degrees Fahrenheit Returns: the wax color that corresponds to temperature */ waxcolor find_wax_color(int temperature); /* Determine the appropriate wax variety for given snow condition. Precondition: snow_condition is an element of {'P','C','F'} Input Parameter: snow_condition (char) (powder, crusty, firm) Returns: the wax variety that corresponds to the snow condition. */ waxvariety find_wax_variety(char snow_condition); /* Print the name for a wax color item. Post: the name of the selected_color is printed (E.g., "Red" Note: No blanks are printed before or after the name */ void print_color(waxcolor selected_color); /* Print the name for a wax variety item. Post: the name of the selected variety is printed (E.g., "Special") Note: No blanks are printed before or after the name */ void print_variety(waxvariety selected_variety);