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.

1. 2. C++ 1) Write a function definition for a boolean function

2.

named isEven: a) Accept a whole number as an input parameter. b)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!