Program 1 Due on Friday September 9, 2011 at the beginning of class. COP 2270 - C FOR ENGINEERS (FLAME) - Fall 2011, Ref 82229, Section U01 Professor: Michael Robinson e-mail : mrobi002@cs.fiu.edu Web Page : www.cs.fiu.edu/~mrobi002/teaching - Program must be named: yourLastNameFirstLetterOfYourFirstNamepgm1.java - Turn in the signed source code on paper, and email me the source code. - Make sure the program is properly documented and aligned uniformally, looking professionally, I will take points off if it not. - Include the following header in every program: ********************************************************************* Author : Your Name Course : COP 2270 T-FR 12:50 PM Professor : Michael Robinson Program # : Program Purpose/Description {A brief description of the program } Due Date : MM/DD/YYYY Certification: I hereby certify that this work is my own and none of it is the work of any other person. ..........{ your signature }.......... /********************************************************************* Purpose of this program: - Create first ANSI C program - Use multiple Data Types to declare variables, and assign values to them. - Use functions, pass parameters. (MAKE SURE THE function NAMES DESCRIBE WHAT THEY DO example: addNumbers ) - Do calculations and print results, using printf and \n or \t - Use remarks to document your program. How: 1 - Worth 3 points - Create and call a function called numericalComputations(), without passing any parameters - In the function, assign the value 100 to the int maximunNumber - Print EACH result for EACH of the following computations: maximunNumber % 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \n maximunNumber - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \t maximunNumber + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \n maximunNumber * 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \t maximunNumber / 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using printf and \n This means: compute maximunNumber with 1, then maximunNumber with 2, maximunNumber with 3 ... This function will have a total of 50 print/println/printf statements 2 - Worth 2 points - Create and call a function called sumOfNumbers(), without passing any parameters - In the function, assign the value 100 to the int N. - Using the sum of numbers formula: (1 + N)*(N/2) print the total amount of the sum of digits from 1 to 100 To find the sum of all the numbers from 1 to 100 (1 + 2 + 3 + 4 + . . + 100), the formula (1 + N)*(N/2) will do it. That is: (1 plus N quantity) times (N divided by 2). 3 - Worth 3 points - Create variables in the main() function and assign the corresponding values for: - your name - your mayor - credits taken - credits this semester - this class's name - Create and call a function called myInfo(..........), passing the above parameters - In the function print: Hi my name is .., my major is .., I have completed .. credits, I and taking .. credits, and this class's name is ..