#include #include #include /*========================================================================= Constants and definitions: ==========================================================================*/ /* put your #defines and typedefs here*/ #define NUM_CRITERIA 3 #define NUM_CHAR 100 #define NUM_MOVIES 10 void must_see_movie(char[][NUM_CHAR], char movies_info[9][10], unsigned int[NUM_CRITERIA]); /*------------------------------------------------------------------------- The main program. (describe what your program does here) -------------------------------------------------------------------------*/ int main() { unsigned int criterion[NUM_CRITERIA]; int ret_val; char movies_info[9][10] = {"Drama", "Mystery", "Crime", "Cobbola", "Noga", "Flincher", "Pacico", "Pearcing", "Pittbull"}; char in_ch,movies[NUM_MOVIES][NUM_CHAR]={{0}}; printf("Please enter the first criterion index: "); ret_val=scanf("%u", &criterion[0]); if (ret_val!=1) { printf("Error!\nProgram Must be Terminated\n"); return 1; } printf("Please enter the second criterion index: "); ret_val=scanf("%u", &criterion[1]); if (ret_val!=1) { printf("Error!\nProgram Must be Terminated\n"); return 1; } printf("Please enter the third criterion index: "); ret_val=scanf("%u", &criterion[2]); if (ret_val!=1) { printf("Error!\nProgram Must be Terminated\n"); return 1; } printf("Please enter the movies list:\n"); while((in_ch=getchar())!=EOF) { } must_see_movie(movies,movies_info,criterion); return 0; } void must_see_movie(char movies[][NUM_CHAR], char movies_info[9][10], unsigned int criterion[NUM_CRITERIA]) { }