Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input consists of five integers. Ex: If the input is 2 4 6 8 10, the output is: all even Ex: If the input is 1 3 5 7 9, the output is: all odd Ex: If the input is 1 2 3 4 5, the output is: not all even or all odd Your program should define and use two functions: Function countEvensInArray(integer array(?) userVals) returns integer numEven Function countOddsInArray(integer array(?) userVals) returns integer numOdd countEvensInArray should return 5 if all integers in the array are even. countOddsInArray should return 5 if all integers in the array are odd.

Looking for solution of this Assignment?


We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay