Question: Need help with this program C++ (Data structures and Algorithms). ------------------------------------------------------------------------------------ Requirements (criteria program must pass): Using of recursion to solve the problem Solid base

Need help with this program C++ (Data structures and Algorithms).

------------------------------------------------------------------------------------

Requirements (criteria program must pass):

Using of recursion to solve the problem

Solid base case for the recursive solution

Using a Recursive case

Good strong test cases to test both true and false situations

The program works correctly and passes all test cases

------------------------------------------------------------------------------------

Instructions:

Need help with this program C++ (Data structures and Algorithms). ------------------------------------------------------------------------------------ Requirements

-------------------------------------------------------------------

SubsequencesTester.cpp file:

#include #include "Subsequences.h"

using namespace std;

void verifyCase(string, string, string, bool);

int main() { /** Add several more test cases to thoroughly test your data verifyCase takes the following parameters (name, word, possible subsequence, true/false it would be a subsequence) **/

verifyCase("Case 1: First Letter", "pin", "programming", true); verifyCase ("Case 2: Skipping Letters", "ace", "abcde", true); verifyCase ("Case 3: Out of order", "bad", "abcde", false);

return 0; }

void verifyCase (string testCaseName, string sub, string sentence, bool correctResponse){ Subsequences s(sentence); if(s.isSubsequence(sub) == correctResponse){ 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 Databases Questions!