Program 1 Due on Thursday September 8, 2011 at the beginning of class. COP 2250 Java Programming - Fall 2011 - Ref 82316 Section U5 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 2250 T-TH 6:25 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 project, first class, and first java program - Use multiple variables of Primitive Data Types and the String Class by declaring them, and assigning values to them. - Use methods, pass parameters. (MAKE SURE THE METHODS NAMES DESCRIBE WHAT THEY DO example: addNumbers ) - Do calculations and print results. - Use print, println, and printf. - Use \n and \t - Use remarks to document your program. How: 1 - Worth 3 points - Create and call a method called numericalComputations(), without passing any parameters - In the method, 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 println maximunNumber + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 using print and \n 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 print and \t This means: compute maximunNumber with 1, then maximunNumber with 2, maximunNumber with 3 ... This method will have a total of 50 print/println/printf statements 2 - Worth 2 points - Create and call a method called sumOfNumbers(), without passing any parameters - In the method, 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() method and assign the corresponding values for: - your name - your mayor - credits taken - credits this semester - this class's name - Create and call a method called myInfo(..........), passing the above parameters - In the method print: Hi my name is .., my major is .., I have completed .. credits, I and taking .. credits, and this class's name is ..