Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions