Question: Write a C++ function named isvalidReal() that checks for a valid double-precision number. This kind of number can have an optional + or - sign,
Write a C++ function named isvalidReal() that checks for a valid double-precision number. This kind of number can have an optional + or - sign, at most one decimal point (which can be the first character), and at least one digit between 0 and 9. The function should return a Boolean value of true if the entered number is a real number; otherwise, it should return a Boolean value of false. Then modify the isvalidReal() function written to remove all leading and trailing blank spaces from its string argument before determining whether the string corresponds to a valid real number.
** This is what I have so far for this program. I feel like I am close, just need some help tweaking and debugging as it is not recognizing the real number. The feedback I got was "You have to check for a decimal point. Just One." I have to be overlooking something simple: **

11 | E#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
