COP-2270 - C Programming (ANSI) Professor: Michael Robinson e-mail : mrobi002@cs.fiu.edu Web Page : www.cs.fiu.edu/~mrobi002/teaching Program 2c Turn in the source code on paper, and email me the source code, the input and output files. Make sure the program is properly documented and aligned uniformally, looking professionally, I will take points off if it not. Purpose: Implement calling methods/functions, if, else if, else, while, for, printf, taking data in double dimension array apart, math methods/functions, ascii values, ******************************************************************************************************* * EVERY EXERCISE MUST THE DONE USING METHODS/FUNCTIONS. * * Every method/function dealing with your name, MUST be called from main, PASSING your name to it. * * make sure each method's name describes what it does. i.e. addNumbers(); * ******************************************************************************************************* - From main() call methods/functions passing parameters where you will implement the following Math methods: examples of parameters: int i = 7; int j = 9; double x = 72.5; double y = -0.34; examples of calling the methods/functions and passing the parameters: processAbsoluteValues(i, j, x, y ); processRoundValues(i, j, x, y ); processCeilingValues(i, j, x, y ); processFlooringValues(i, j, x, y ); processMinimunValues(i, j, x, y ); processMaximunValues(i, j, x, y ); processTrigFunctionsValues(i, j, x, y ); cos, sin, tan processExponentialValues(i, j, x, y ); processLogValues(i, j, x, y ); processPowerValues(i, j, x, y ); processSquareRootsValues(i, j, x, y ); processRandomValues(i, j, x, y ); In each method/funtion do computations with the data received implementing the corresponding Math method, as presented in class. - At the main method, create a single dimension array containing your "first name $ middle name % last name and ONE space" i.e. "George & Washington % Rodriguez " NOTE: Every method/function dealing with your name, MUST be called from main, PASSING your name to it. Using the for loop, if, else if, else, ||, and &&, printf, and any other command you want, examine each character of your name and determine if it is: a space, a vowel (a,e,i,o,u,A,E,I,O,U), a consonant (b,B,w,W,gG, etc) the symbol % or the symbol $, and using the current value of x in your for loop print: "character [x] located at position x is a consonant" or "character [x] located at position x is a vowel" or "character [x] located at position x is a space" or "character [x] located at position x is a not a vowel or a consonant or a space". ie: My name is [George $ Washington % Rodriguez] character [G] located at position 0 is a consonant character [e] located at position 1 is a vowel character [o] located at position 2 is a vowel character [r] located at position 3 is a consonant character [g] located at position 4 is a consonant character [e] located at position 5 is a vowel character [ ] located at position 6 is a space character [$] located at position 7 is not a vowel or a consonant or a space character [ ] located at position 8 is a space character [W] located at position 9 is a consonant character [a] located at position 10 is a vowel character [s] located at position 11 is a consonant character [h] located at position 12 is a consonant character [i] located at position 13 is a vowel character [n] located at position 14 is a consonant character [g] located at position 15 is a consonant character [t] located at position 16 is a consonant character [o] located at position 17 is a vowel character [n] located at position 18 is a consonant character [ ] located at position 19 is a space character [%] located at position 20 is not a vowel or a consonant or a space character [ ] located at position 21 is a space character [R] located at position 22 is a consonant character [o] located at position 23 is a vowel character [d] located at position 24 is a consonant character [r] located at position 25 is a consonant character [i] located at position 26 is a vowel character [g] located at position 27 is a consonant character [u] located at position 28 is a vowel character [e] located at position 29 is a vowel character [z] located at position 30 is a consonant character [ ] located at position 31 is a space - Using a for loop, display to the screen, the string containing your name so that each loop will NOT contain the last character on the previous line, with the length of the string being printed, and the string surrounded by square brackes [] NOTE: Every method dealing with your name, MUST be called from main, PASSING your name to it. i.e: 32 [George $ Washington % Rodriguez ] 31 [George $ Washington % Rodriguez] 30 [George $ Washington % Rodrigue] 29 [George $ Washington % Rodrigu] 28 [George $ Washington % Rodrig] 27 [George $ Washington % Rodri] 26 [George $ Washington % Rodr] 25 [George $ Washington % Rod] 24 [George $ Washington % Ro] 23 [George $ Washington % R] 22 [George $ Washington % ] 21 [George $ Washington %] 20 [George $ Washington ] 19 [George $ Washington] 18 [George $ Washingto] 17 [George $ Washingt] 16 [George $ Washing] 15 [George $ Washin] 14 [George $ Washi] 13 [George $ Wash] 12 [George $ Was] 11 [George $ Wa] 10 [George $ W] 9 [George $ ] 8 [George $] 7 [George ] 6 [George] 5 [Georg] 4 [Geor] 3 [Geo] 2 [Ge] 1 [G] NOTE: Every method/function dealing with your name, MUST be called from main, PASSING your name to it. - Print your name after changing it to all upper case letters. - Print your name after changing it to all lower case letters. - Print your name after taking all spaces out. - Print your name after making all vowels upper case, and all consonants lower case. - Using a for loop, print your name backwards. - Print your name in ASCII values. Turn in the source code on paper, and email me the source code. Make sure the program is properly documented and aligned uniformally, looking professionally.