Write a method called evenSumMax that accepts a Scanner for the console as a parameter. The method

Question:

Write a method called evenSumMax that accepts a Scanner for the console as a parameter. The method should prompt the user for a number of integers, then prompt the integer that many times. Once the user has entered all the integers, the method should print the sum of all the even numbers the user typed, along with the largest even number typed. You may assume that the user will type at least one nonnegative even integer. Here is an example dialogue:

How many integers? 4

Next integer? 2

Next integer? 9

Next integer? 18

Next integer? 4

Even sum = 24, Even max = 18

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: