Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 numbers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

2. How were various roles filled?

Answered: 1 week ago

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago