How to write a recursion program in C++?
How to write a recursion program in C++?
Individually, write C++ programs to solve the following problems USING RECURSION. After you are done, demonstrate your solutions to your instructor.
1. Implement a function “string mirror(string word)” that returns the mirror of the word. (Most of you were almost done with this)
2. Implement a function “int sumScores(vector<int> scores ) that returns the sum of the scores in a vector.
3. Implement a function “int countSpaces(string sentence)” that returns the number of spaces in a sentence. For example “Good luck on this assignment” would return 4 because there are 4 spaces.
Extra Credit. Implement a function “string arrangeAlphabetically(string word)” that returns the letters in a word arranged alphabetically. For example, “car” would return “acr”.
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


