Question: JAVA PLEASE DUE in 1.5 HOUR PLEASE ADD THE COMMENTS or PLEASE DO THE SECOND PICTURE INSTEAD OF COMMENTS THANK YOU Question: Find the Evens

JAVA PLEASE DUE in 1.5 HOUR PLEASE ADD THE COMMENTS or PLEASE DO THE SECOND PICTURE INSTEAD OF COMMENTS

THANK YOU

JAVA PLEASE DUE in 1.5 HOUR PLEASE ADD THE COMMENTS or PLEASE

DO THE SECOND PICTURE INSTEAD OF COMMENTS THANK YOU Question: Find the

Question: Find the Evens For your quiz question, you will create a program that finds the even digits in any number. Use the following outline as your guide I Initialize an integer variable - value set by user input Define Method findEvens() Set variable for list of even numbers (text) Set integer for count of the even numbers Check if each digit is even Add one to the count Add the even number to the list Print the result Print the result: Your code should contain everything listed above, including integer variables (do not use text to check the digits). Also use the findEvens() method and create a list of even numbers as well as a count of the even numbers. Print your result in the following format. Assuming the input number is 65784193 (as an example) the output would be... There are 3 evens in 65784193 [6 8 4]. You must use print formatting (%) to make sure that the number and text are formatted properly. 1. The findEvens() Method Did you use parameters, or instance variables, parameters, or returns. Why was this necessary? What kind of loop did you use and why did that make sense? 2. Explain the flow of variable data Where did variable data come from? How did it flow through the program (parameters, processes, formatting, etc) to your output? 3. Explain your output How did you format your output and how did you handle the variable scope to print the results (instance variables, returns, or parameters)

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!