List of integers

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.

20% OFF on your first order








Let’s Get Started

Team with top experts around the globe to succeed in learning


How it works

If you are looking for the best essay writing services for cheap, then you have come to the right place. specializes in custom academic papers for all levels of students. From high school students to college graduates and undergraduates, all the way up to university students at master’s degree and even doctoral levels.

Place an order

Fill out the order form. Attach any custom instructions.

Make Payment

Pay online safely with major platforms.

Writing Process

We’ll assign your paper to the most suitable writer & editor.

Get your Order

Once complete, we’ll send the paper to your email.