Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

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

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_2

Step: 3

blur-text-image_3

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

Explain the evolution of digital marketing? po78

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago