Answered step by step
Verified Expert Solution
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
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