Question: Write a program that asks the user for two numbers and displays their sum. The program should reject any non-number input. The program does this

Write a program that asks the user for two numbers and displays their sum. The program should reject any non-number input. The program does this by reading the numbers in as C-Strings and then uses the following function to test the input isNumber) - this function accepts a C-string as it's only argument. The function uses appropriate functions from chapter 10 to determine if the C-string passed to it contains a number. If it does, then it should return true, false otherwise. For example, if the C string passed to it is "123.45" then the function returns true. If the C-string contains "12g" or"helo, then the function returns false. After the numbers are verified, they will need to be converted to an appropriate data type and then added together Do not use global variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
