Write a function prototype and a function definition

Please help in my assignment in C++. We have not been taught yet and I am running out of time Question:

Write a function prototype and a function definition for a function that takes one argument of type double. Your function should return the character value ā€˜Pā€™ provided its argument is positive and return ā€˜Nā€™ when the argument is either zero or negative.
Topic archived. No new replies allowed.