Question: Task 4 (2 pts): (Extra Credit) Project: Lab_04_04_EvenOdd A program that takes a integer (java int) and uses the modulo function to indicate if the

 Task 4 (2 pts): (Extra Credit) Project: Lab_04_04_EvenOdd A program that

Task 4 (2 pts): (Extra Credit) Project: Lab_04_04_EvenOdd A program that takes a integer (java int) and uses the modulo function to indicate if the number is odd or even. Since we can't do input in java yet, just hard code the value for the input as a variable instantiation. (Instead of inputing the value which we can't do yet, set the value in the code. int numToExamine =2; // program will then determine that since 2mod2 is 0 that numToExamine is Even. )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!