Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java 14.4 Prog 4 -counting even numbers(loop) Write a program to prompt for inputting an integer N, then enter N integers (a loop is needed),
Java
14.4 Prog 4 -counting even numbers(loop) Write a program to prompt for inputting an integer N, then enter N integers (a loop is needed), print the numbers user entered, and the amount of even and odd numbers (zero is even number). (1) Prompt for the user to input an integer and output the integer. (1 pts) Enter an integer: You entered: 5 (2) Prompt for the user to input Nintegers, output the numbers entered and the amount of even and odd numbers (9 pts) Enter an integer: You entered: 5 Enter 5 integers: You entered: 55 32 0 4 -9 3 even numbers and 2 odd numbers 3 Proram: Counting even numbers 4. The program prompts for inputting an integer N, then enter N integers (a loop is needed 5 print the numbers user entered, and the amount of even and odd numbers (zero is even n 7 */ import java.util.*; public class Prog3_countingEvenNum_repetition { public static void main (String[] arg) { /* Type your code here. */ Develop mode Submit mode Run your program as often as you'd like, before input values in the first box, then click Run prog second box. nter program input (optional) Enter an integer: Fou entered: 5 Enter an integer: Fou entered: 5 Enter 5 integers: Fou entered: 55 32 0 4 -9 B even numbers and 2 odd numbersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started