Question: 1. 2. C++ 1) Write a function definition for a boolean function named isEven: a) Accept a whole number as an input parameter. b) Return
1.

2.

C++
1) Write a function definition for a boolean function named isEven: a) Accept a whole number as an input parameter. b) Return true if the number is even, false if the number is odd. Example Given the argument 6 return true. 1) Write a maxConsecutive Diff function which returns the maximum difference between any two consecutive values in the array. Consecutive values are next to each other in an array (+/- 1 index) This function should accept all required data as parameters. Examples If the array is 17 15 16 11 14 the maximum consecutive difference is 5 which is the difference between 16 and 11. If the array is 10 13 11 12 19 the maximum consecutive difference is 7 which is the difference between 12 and 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
