Question: c++ program Problem B) (20 Points) A recursive function to find and print the punctuation in a sentence. Write a recursive function to print the

c++ program

c++ program Problem B) (20 Points) A recursive function to find and

Problem B) (20 Points) A recursive function to find and print the punctuation in a sentence. Write a recursive function to print the punctuation in a string containing a sentence For example, for the sentence S, where S - "Every day is a gift! ", said the parent to their child The recursive function punctuation (S) will print Write the base cases and recurrence relationship for the function in the comments that describe your function, as you did for problem A above You should embed the function in a program that calls the recursive function to find the punctuation in different sentences input by the user. Your program should obtain a sentence from the user via the console. Your program should also contain a continuation loop that prompts the user to determine if they would like to continue One sample run of your program should be similar to the following Enter a Sentence: "Every day is a gift!" The punctuation is: "!" Would you like to continue? (Enter 'Y or 'N'): N Your program should check for the following punctuation marks (specified between the braces f> below with a space in between each punctuation mark) Note, we assume that the double quote: is equivalent to:'" And the single quote: is equivalent to: , Write, test, and correct your program. Have all the functions, including main, in a single file with the function definitions after main. When you are done, name the source code file 7B. cpp (where you replace with your U of M email address) and submit it using the Homework 7 Problem B link on the class Moodle page. Remember to follow the naming convention diligently or your program will not be graded. Also remember to download You should then check it to make sure it is the file you wanted to submit! your program to the machine you submitted it from after you submit it via Moodle

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!