+1 714-215-3097

(Solved) : Write C Code Single Source File Cpp File Containing Following User Defined Functions 1 Ise Q35611628

Write C++ Code in single source file (.cpp file) containingfollowing user defined functions:

1. IsEven- takes an integer input (one argument of type int) andreturn true or false.

2. IsPositive- takes a float input (one argument of type double)and return a Boolean value. The function returns the true if itsargument is positive and false if its argument is zero ornegative.

3. IsPrime- takes an integer input and return true or false.

4. NumOfDigits- takes an integer input and return number ofdigits in that integer.

Instructions: After writing these functions, show usage of thesefunctions in main () function by calling these functions andshowing their output.

Leave a Reply

Your email address will not be published. Required fields are marked *