Question: Please write a program that will read this input file. Print how many even numbers and how many odd numbers are in the list. The
Please write a program that will read this input file. Print how many even numbers and how many odd numbers are in the list. The sentinel in the file is the number 0 (this means you take zero as being where you stop. You do not process it - meaning you do not count it as either odd or even. )
numbers.in
Submit it as L5num1
Then do it without a sentinel, just input as long as there are numbers in the file. Submit this as L5Num2
Don't forget to use try/catch and upload the entire project (zipped) each time, so two zipped files.
In Java!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
