Program 4 COP-2250 - Java Programming - Summer C 2011, Ref 20025, Section U1 Professor: Michael Robinson e-mail: mrobi002@cs.fiu.edu Web Page: www.cs.fiu.edu/~mrobi002/teaching Program 4 Due on July, Wed 27, 2011 at the beginning of class. 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 M-W 11:00 AM 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: - Implement logic - Implement classes and constructors - How: **** NOTE **** Each task must be done inside its own method. Use main ONLY to create variables and call the methods. From main() call methods passing parameters where you will implement the following: Worth 1 point Purpose: logic and if statements - Passing 3 numbers call a method that will print these numbers in ascending order, e.i. if you pass (98, 234, 6) print 6 98 234 Worth 5 points Create a class with a constructor and call it : first letter of your first name + first letter of your last name + the word Names. this class should have: - private variables - one constructor that will accept your first name, and your last name. - mutator (set) methods that will be used to - receive variables and set your private variables as requested by the main program. - accessor (get) methods that will be used to - return values requested by the main program. Create a main program called : your last name + Fist name initial + pgm4. At the main(String arg[]) method in main program: - call methods in the "class with constructor" program, that will set values to its private variables containing: - your major - amount of credits taken this semester - total amount of credits obtained so far - what grade do you expect in this class At the main(String arg[]) method in main program: At main calling accessor (set) methods from the "class with constructor" print: - Your first name, last name, major, amount of credits taken this semester, total amount of credits obtained so far, what grade do you expect in this class Worth 2 points From main call the following methods: - WITHOUT passing any parameters, call a method that will print BACKWARDS the even number from 50 to 0. Hint: use the step part of a for loop OR the modulus of the numbers - PASSING a number of your choice, call a method that will print the ( ceiling of the square root of such number ) * 5.