COP 2270 - C FOR ENGINEERS Professor: Michael Robinson e-mail : mrobi002@cs.fiu.edu Web Page : www.cs.fiu.edu/~mrobi002/teaching/c/c.php Program 4, Recursive programming, covering Multidimensional Arrays, structs, paralell arrays DUE ON Tuesday November 15th, 2011 AT THE BEGINNING OF CLASS 1 - Recursive Programming: From main() call a function called SquareRoot() passing one int. in that function using recursion return the square root of the passed number. At main() print the results (the square root of the passed number). The commands in main() that calls the function and prints the results must be done in one line. 2 - from main() giving any name to your functions, call the following functions that will: - not pass any parameters and will not have a return - pass two integers and will not have a return - not pass anyting and will return an int - pass three integers and return one float 3 - Having the following TWO, ONE dimension arrays: one[0] = "This ANSI C "; two[0] = "class"; one[1] = "at "; two[1] = "FIU"; one[2] = "is "; two[2] = "challenging && enjoyable"; print the results in a parallel array made with these two one dim arrays 4 - Having the following TW0, ONE dimension arrays: int studentId[]= {2900, 2901, 2902, 2903, 2904}; int finalGrade[]={ 90, 91, 82, 93, 94 }; Creatre a PARALLEL array, in a function that will display the following: Student ID Grade 2900 90 2901 91 2902 82 2903 93 2904 94 5 - Create a struc called students_t which will contain the following data: your name your imaginary numeric ID name of this class your final grade - Print the data in this struc to a text file. - open the text file, read and display the data in it My name is : Joe My ID number is : 1050 Im a at FIU taken : ANSI C I expect a grade of : A