Question: Function Name Input (Parameters) Output (Return Type) |Description/Notes check_range int lower bound Boolean Indicates if the provided number int upper_bound (test_value) is in the specified

 Function Name Input (Parameters) Output (Return Type) |Description/Notes check_range int lowerbound Boolean Indicates if the provided number int upper_bound (test_value) is in

Function Name Input (Parameters) Output (Return Type) |Description/Notes check_range int lower bound Boolean Indicates if the provided number int upper_bound (test_value) is in the specified range int test value equality_test int num1 Int Tests num1 against num2 and returns int num2 -1 if num1 num2 is int string num Boolean Indicates if a given string is an integer string_to_int string num void Convert the given string to int int & value swap int& num1 void Swap num1 and num2 int& num2 word count string sentence Int Provides the number of words in a given string Testing Requirements: In error_func.cpp, main() will serve as the location where you test your functions. For each function you must show each return option is reachable. For example, is_int() should be run twice: once to show that it can successfully identify a string as an int and return true; once to show that is can successfully identify the string is not an int and return false. You must label your tests, indicating what you are testing, the value you are providing, the expected output and the actual output. If the expected output matches the actual output, the program should print "PASS" for the test and "FAIL" otherwise. Your printout should be readable. Below is the example code to test is_int(): cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!