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 evenEx: If the input is 1 3 5 7 9, the output is:all oddEx: If the input is 1 2 3 4 5, the output is:not all even or all oddYour program should define and use two functions: Function countEvensInArray(integer array(?) userVals) returns integer numEvenFunction countOddsInArray(integer array(?) userVals) returns integer numOddcountEvensInArray should return 5 if all integers in the array are even. countOddsInArray should return 5 if all integers in the array are odd.
Freebies just for you
We are available 24/7
We help you complete college assignments in under 24 hours.
Get help with essays, research papers, PowerPoint Presentations, reports, reviews, and projects at incredibly low prices.
List of integers
Custom Papers
We will write a custom paper for you at $15.50 $11/page
Free title page
Free reference page
Free formatting
Unlimited revisons
EssayTab is hands down the best essay writing service for college students. I was initially skeptical about the quality of a product that has such a low price point but I can tell you that it’s worth every penny! I’ve been using EssayTab for my essays in college as well as in grad school, and they always deliver excellent content.

College Student