Question: Write a program that contains two methods: the isDivisible method of Lab 6 . 4 a method, boolean isEven ( int n ) , that

Write a program that contains two methods:
the isDivisible method of Lab 6.4
a method, boolean isEven(int n), that returns whether n is even or not
isEven must be written using isDivisible
(This is an example of method composition discussed in the notes)
Your main should prompt for the number, pass it (to isEven, and print the result.

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!