WRITE A FUNCTION DECLARATION AND A FUNCTION DEFINITION FOR A FUNCTI...

9. Write a function declaration and a function definition for a function that takes one argu-ment of type double. The function returns the character value ’P’ if its argument is posi-tive and returns ’N’ if its argument is zero or negative.