Write a function declaration and function definition for a function which allows the user to input an argument of type double. The function will evaluate the value of the input and returns the character ‘P' if the input argument is positive or an ‘N' if its argument is zero or negative.