Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program to prompt for inputting an integer N, then enter N integers (a loop is needed), print the numbers user entered, and

Write a Java 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 N integers, 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

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions