COP 3804 Intermediate Java - project 2 : pgm2_6aCOP3804java2 Professor: Michael Robinson e-mail : michael.robinson@cs.fiu.edu Web Page : cs.fiu.edu/~mrobi002 a - Using Eclipse or terminal mode in Windows, Linux or Apple create the program described below. b - If you are using terminal mode, install Java JDK Make sure that your program does not have any warnings Java program: - At the beginning of your program add the following: /********************************************************************* Author : Your Name Course : Java section. Example Java-1, Java-2, Java-3, or Java-4 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 }.......... *********************************************************************/ - Program must be named: yourLastNameFirstLetterOfYourFirstNamePgm2.java ex: robinsonMpgm2.java - Make sure the program is properly documented and aligned uniformally, according to our "JAVA Programming Rules", discussed in class and located at: http://users.cis.fiu.edu/~mrobi002/includes/JAVA_programmingRules I will take points off if you do not follow the programming instructions. How to create java program: - If you are using terminal mode, create your program using an editor such as: In Windows : notepad In Linux : gedit, nano, pico, vi or vim - Compile and run this program using the following commands: to compile : javac robinsonMpgm1.java to run : java robinsonMpgm1 Purpose of this program: 1 - Worth 2.5 points. - Implement division by 0, with error trapping, using if and while commands, How: - Using two variables: FirstNumber and LastNumber, use a while loop. - Ask the user to enter the first number. - Ask the user to enter the second number. - If the user enters the value 99 for the first or the second number, you must exit the while loop immediately, and terminate your program. - If the second number is ZERO inform the user that you CAN NOT divide by ZERO, and ask for a correct second number. - If the second number is NOT a zero, do the division, display all numbers on this computation using labels, example: 4 divided by 1 = 4 2 - Worth 2.5 points. - Implementation of modulus commands How: - Use a for loop from 0 to 100. - Find the results of calculating each number from (0 to 100 mod 5) + 3. - After the for loop ends, display the average for all previous results and display the results using labels. example: The total of all computations is: The average of all computations is: How: - From the main method call the method to solve question 1, then returning to the main method call the method to solve question 2. Program submission: - Upload your source code to your Moodle account, and turn in your signed source code on printed and stappled paper.