SlideShare a Scribd company logo

c++ please Write a recursive function that takes a string pa.pdf

J
jaipur2

c++ please Write a recursive function that takes a string parameter and prints the string in reverse order changing every lower case letter to upper case and every upper case letter to lower. Rewrite your solution to the first solution above so that it returns the reversed string rather than printing it. Input the string in main, pass it to the function, and have main() print the value returned. You may not use any functions you dont write to solve this problem, other than standard string manipulation functions. this a 2 part question, if anyone could help with both of these it would be greatly appreciated..

1 of 1
Download to read offline
c++ please
Write a recursive function that takes a string parameter and prints the string in reverse order
changing every lower case letter to upper case and every upper case letter to lower.
Rewrite your solution to the first solution above so that it returns the reversed string rather than
printing it. Input the string in main, pass it to the function, and have main() print the value returned.
You may not use any functions you dont write to solve this problem, other than standard string
manipulation functions. this a 2 part question, if anyone could help with both of these it would be
greatly appreciated.

Recommended

Business organizations are relying more and more on social m.pdf
Business organizations are relying more and more on social m.pdfBusiness organizations are relying more and more on social m.pdf
Business organizations are relying more and more on social m.pdfjaipur2
 
Bu yaz kamyonu farkl yerel topluluk etkinliklerine gtryor.pdf
Bu yaz kamyonu farkl yerel topluluk etkinliklerine gtryor.pdfBu yaz kamyonu farkl yerel topluluk etkinliklerine gtryor.pdf
Bu yaz kamyonu farkl yerel topluluk etkinliklerine gtryor.pdfjaipur2
 
Budget Analysis A budget is an expression of managements e.pdf
Budget Analysis A budget is an expression of managements e.pdfBudget Analysis A budget is an expression of managements e.pdf
Budget Analysis A budget is an expression of managements e.pdfjaipur2
 
BUSINESS LAW QUESTION Question 2 Ashik owns a landed pr.pdf
BUSINESS LAW QUESTION Question 2     Ashik owns a landed pr.pdfBUSINESS LAW QUESTION Question 2     Ashik owns a landed pr.pdf
BUSINESS LAW QUESTION Question 2 Ashik owns a landed pr.pdfjaipur2
 
Bu altrma Boston konut veri setini ierir a Balamak iin.pdf
Bu altrma Boston konut veri setini ierir a Balamak iin.pdfBu altrma Boston konut veri setini ierir a Balamak iin.pdf
Bu altrma Boston konut veri setini ierir a Balamak iin.pdfjaipur2
 
Bu snf arkadamn yazd bir tartma gnderisidir Yant vermem.pdf
Bu snf arkadamn yazd bir tartma gnderisidir  Yant vermem.pdfBu snf arkadamn yazd bir tartma gnderisidir  Yant vermem.pdf
Bu snf arkadamn yazd bir tartma gnderisidir Yant vermem.pdfjaipur2
 
Bu senaryo bir geici zm en iyi ekilde aklar Etkili.pdf
Bu senaryo bir geici zm en iyi ekilde aklar   Etkili.pdfBu senaryo bir geici zm en iyi ekilde aklar   Etkili.pdf
Bu senaryo bir geici zm en iyi ekilde aklar Etkili.pdfjaipur2
 
Bu ifadelerin her birinin doru mu yoksa yanl m olduuna karar.pdf
Bu ifadelerin her birinin doru mu yoksa yanl m olduuna karar.pdfBu ifadelerin her birinin doru mu yoksa yanl m olduuna karar.pdf
Bu ifadelerin her birinin doru mu yoksa yanl m olduuna karar.pdfjaipur2
 

More Related Content

More from jaipur2

C++ ONLY Write a program that will keep track of information.pdf
C++ ONLY Write a program that will keep track of information.pdfC++ ONLY Write a program that will keep track of information.pdf
C++ ONLY Write a program that will keep track of information.pdfjaipur2
 
C++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdfC++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdfjaipur2
 
C++ only plz Write a function that takes two arguments and .pdf
C++ only  plz Write a function that takes two arguments and .pdfC++ only  plz Write a function that takes two arguments and .pdf
C++ only plz Write a function that takes two arguments and .pdfjaipur2
 
C The following payoff for three mutually exclusive projec.pdf
C The following payoff for three mutually exclusive projec.pdfC The following payoff for three mutually exclusive projec.pdf
C The following payoff for three mutually exclusive projec.pdfjaipur2
 
C++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdfC++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdfjaipur2
 
C++ pleae Your welcome DoublyLinkedList thisgthea.pdf
C++ pleae  Your welcome DoublyLinkedList  thisgthea.pdfC++ pleae  Your welcome DoublyLinkedList  thisgthea.pdf
C++ pleae Your welcome DoublyLinkedList thisgthea.pdfjaipur2
 
C++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdfC++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdfjaipur2
 
C++ Define a function unbalanced brackets that takes in a st.pdf
C++ Define a function unbalanced brackets that takes in a st.pdfC++ Define a function unbalanced brackets that takes in a st.pdf
C++ Define a function unbalanced brackets that takes in a st.pdfjaipur2
 
C++ The following code fragment will no compile What is w.pdf
C++   The following code fragment will no compile What is w.pdfC++   The following code fragment will no compile What is w.pdf
C++ The following code fragment will no compile What is w.pdfjaipur2
 
c What saving rate is needed to yield the goldenrule capi.pdf
c What saving rate is needed to yield the goldenrule capi.pdfc What saving rate is needed to yield the goldenrule capi.pdf
c What saving rate is needed to yield the goldenrule capi.pdfjaipur2
 
c++ Write the implementations of two functions to carry o.pdf
c++    Write the implementations of two functions to carry o.pdfc++    Write the implementations of two functions to carry o.pdf
c++ Write the implementations of two functions to carry o.pdfjaipur2
 
C++ Write a program that will keep track of information ab.pdf
C++   Write a program that will keep track of information ab.pdfC++   Write a program that will keep track of information ab.pdf
C++ Write a program that will keep track of information ab.pdfjaipur2
 
C Q You want to convert the natural number x to y The f.pdf
C Q You want to convert the natural number x to y The f.pdfC Q You want to convert the natural number x to y The f.pdf
C Q You want to convert the natural number x to y The f.pdfjaipur2
 
C Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdfC Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdfjaipur2
 
BSC1005L Single Celled Protist Activity Student Data and Cla.pdf
BSC1005L Single Celled Protist Activity Student Data and Cla.pdfBSC1005L Single Celled Protist Activity Student Data and Cla.pdf
BSC1005L Single Celled Protist Activity Student Data and Cla.pdfjaipur2
 
C Language Question 1 4 points Listen Which of the fo.pdf
C Language   Question 1 4 points   Listen Which of the fo.pdfC Language   Question 1 4 points   Listen Which of the fo.pdf
C Language Question 1 4 points Listen Which of the fo.pdfjaipur2
 
Bu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdf
Bu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdfBu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdf
Bu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdfjaipur2
 
C Los posibles ahorros fiscales suelen ser la principal mot.pdf
C Los posibles ahorros fiscales suelen ser la principal mot.pdfC Los posibles ahorros fiscales suelen ser la principal mot.pdf
C Los posibles ahorros fiscales suelen ser la principal mot.pdfjaipur2
 
c Irienpret the recaring of the slope of the regressicn lin.pdf
c Irienpret the recaring of the slope of the regressicn lin.pdfc Irienpret the recaring of the slope of the regressicn lin.pdf
c Irienpret the recaring of the slope of the regressicn lin.pdfjaipur2
 
c Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdfc Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdfjaipur2
 

More from jaipur2 (20)

C++ ONLY Write a program that will keep track of information.pdf
C++ ONLY Write a program that will keep track of information.pdfC++ ONLY Write a program that will keep track of information.pdf
C++ ONLY Write a program that will keep track of information.pdf
 
C++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdfC++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdf
 
C++ only plz Write a function that takes two arguments and .pdf
C++ only  plz Write a function that takes two arguments and .pdfC++ only  plz Write a function that takes two arguments and .pdf
C++ only plz Write a function that takes two arguments and .pdf
 
C The following payoff for three mutually exclusive projec.pdf
C The following payoff for three mutually exclusive projec.pdfC The following payoff for three mutually exclusive projec.pdf
C The following payoff for three mutually exclusive projec.pdf
 
C++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdfC++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdf
 
C++ pleae Your welcome DoublyLinkedList thisgthea.pdf
C++ pleae  Your welcome DoublyLinkedList  thisgthea.pdfC++ pleae  Your welcome DoublyLinkedList  thisgthea.pdf
C++ pleae Your welcome DoublyLinkedList thisgthea.pdf
 
C++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdfC++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdf
 
C++ Define a function unbalanced brackets that takes in a st.pdf
C++ Define a function unbalanced brackets that takes in a st.pdfC++ Define a function unbalanced brackets that takes in a st.pdf
C++ Define a function unbalanced brackets that takes in a st.pdf
 
C++ The following code fragment will no compile What is w.pdf
C++   The following code fragment will no compile What is w.pdfC++   The following code fragment will no compile What is w.pdf
C++ The following code fragment will no compile What is w.pdf
 
c What saving rate is needed to yield the goldenrule capi.pdf
c What saving rate is needed to yield the goldenrule capi.pdfc What saving rate is needed to yield the goldenrule capi.pdf
c What saving rate is needed to yield the goldenrule capi.pdf
 
c++ Write the implementations of two functions to carry o.pdf
c++    Write the implementations of two functions to carry o.pdfc++    Write the implementations of two functions to carry o.pdf
c++ Write the implementations of two functions to carry o.pdf
 
C++ Write a program that will keep track of information ab.pdf
C++   Write a program that will keep track of information ab.pdfC++   Write a program that will keep track of information ab.pdf
C++ Write a program that will keep track of information ab.pdf
 
C Q You want to convert the natural number x to y The f.pdf
C Q You want to convert the natural number x to y The f.pdfC Q You want to convert the natural number x to y The f.pdf
C Q You want to convert the natural number x to y The f.pdf
 
C Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdfC Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdf
 
BSC1005L Single Celled Protist Activity Student Data and Cla.pdf
BSC1005L Single Celled Protist Activity Student Data and Cla.pdfBSC1005L Single Celled Protist Activity Student Data and Cla.pdf
BSC1005L Single Celled Protist Activity Student Data and Cla.pdf
 
C Language Question 1 4 points Listen Which of the fo.pdf
C Language   Question 1 4 points   Listen Which of the fo.pdfC Language   Question 1 4 points   Listen Which of the fo.pdf
C Language Question 1 4 points Listen Which of the fo.pdf
 
Bu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdf
Bu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdfBu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdf
Bu bal bir Soru olduundan dier Sorulardan Sorular sormak i.pdf
 
C Los posibles ahorros fiscales suelen ser la principal mot.pdf
C Los posibles ahorros fiscales suelen ser la principal mot.pdfC Los posibles ahorros fiscales suelen ser la principal mot.pdf
C Los posibles ahorros fiscales suelen ser la principal mot.pdf
 
c Irienpret the recaring of the slope of the regressicn lin.pdf
c Irienpret the recaring of the slope of the regressicn lin.pdfc Irienpret the recaring of the slope of the regressicn lin.pdf
c Irienpret the recaring of the slope of the regressicn lin.pdf
 
c Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdfc Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdf
 

Recently uploaded

Organic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional GroupsOrganic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional GroupsDr.M.Geethavani
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxdeputymitchell2
 
Database Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDatabase Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDr-Dipali Meher
 
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...Katherine Villaluna
 
Dr.M.Florence Dayana-Cloud Computing-Unit - 1.pdf
Dr.M.Florence Dayana-Cloud Computing-Unit - 1.pdfDr.M.Florence Dayana-Cloud Computing-Unit - 1.pdf
Dr.M.Florence Dayana-Cloud Computing-Unit - 1.pdfDr.Florence Dayana
 
Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...Association for Project Management
 
Mycobacteriology update 2024 Margie Morgan.ppt
Mycobacteriology update 2024 Margie Morgan.pptMycobacteriology update 2024 Margie Morgan.ppt
Mycobacteriology update 2024 Margie Morgan.pptMargie Morgan
 
Unit 5th topic Drugs used in congestive Heart failure and shock.pdf
Unit 5th topic Drugs used in congestive Heart failure and shock.pdfUnit 5th topic Drugs used in congestive Heart failure and shock.pdf
Unit 5th topic Drugs used in congestive Heart failure and shock.pdfSUMIT TIWARI
 
Google Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdfGoogle Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdfTechSoup
 
Plagiarism, Types & Consequences by Dr. Sarita Anand
Plagiarism, Types & Consequences by Dr. Sarita AnandPlagiarism, Types & Consequences by Dr. Sarita Anand
Plagiarism, Types & Consequences by Dr. Sarita AnandDr. Sarita Anand
 
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...EduSkills OECD
 
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.Florence Dayana
 
Andreas Schleicher_ Strengthening Upper Secondary Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary  Education in LithuaniaAndreas Schleicher_ Strengthening Upper Secondary  Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary Education in LithuaniaEduSkills OECD
 
Digital Footprints to Career Pathways - Building a Strong Professional Online...
Digital Footprints to Career Pathways - Building a Strong Professional Online...Digital Footprints to Career Pathways - Building a Strong Professional Online...
Digital Footprints to Career Pathways - Building a Strong Professional Online...Sue Beckingham
 
Peninsula Channel Commanders Rules Handbook
Peninsula Channel Commanders Rules HandbookPeninsula Channel Commanders Rules Handbook
Peninsula Channel Commanders Rules Handbookpccwebmasterhmb
 
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...i3 Health
 
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...AKSHAYMAGAR17
 
Candace-Stone project& portfolio 1 class
Candace-Stone project& portfolio 1 classCandace-Stone project& portfolio 1 class
Candace-Stone project& portfolio 1 classccstone
 

Recently uploaded (20)

Organic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional GroupsOrganic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional Groups
 
Advance Mobile Application Development class 04
Advance Mobile Application Development class 04Advance Mobile Application Development class 04
Advance Mobile Application Development class 04
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Database Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDatabase Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,View
 
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
 
Dr.M.Florence Dayana-Cloud Computing-Unit - 1.pdf
Dr.M.Florence Dayana-Cloud Computing-Unit - 1.pdfDr.M.Florence Dayana-Cloud Computing-Unit - 1.pdf
Dr.M.Florence Dayana-Cloud Computing-Unit - 1.pdf
 
Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...Successful projects and failed programmes – the cost of not designing the who...
Successful projects and failed programmes – the cost of not designing the who...
 
Mycobacteriology update 2024 Margie Morgan.ppt
Mycobacteriology update 2024 Margie Morgan.pptMycobacteriology update 2024 Margie Morgan.ppt
Mycobacteriology update 2024 Margie Morgan.ppt
 
Unit 5th topic Drugs used in congestive Heart failure and shock.pdf
Unit 5th topic Drugs used in congestive Heart failure and shock.pdfUnit 5th topic Drugs used in congestive Heart failure and shock.pdf
Unit 5th topic Drugs used in congestive Heart failure and shock.pdf
 
Google Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdfGoogle Ad Grants Services at TechSoup.pdf
Google Ad Grants Services at TechSoup.pdf
 
CLUBE PERLINGUAS .
CLUBE PERLINGUAS                        .CLUBE PERLINGUAS                        .
CLUBE PERLINGUAS .
 
Plagiarism, Types & Consequences by Dr. Sarita Anand
Plagiarism, Types & Consequences by Dr. Sarita AnandPlagiarism, Types & Consequences by Dr. Sarita Anand
Plagiarism, Types & Consequences by Dr. Sarita Anand
 
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
 
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
 
Andreas Schleicher_ Strengthening Upper Secondary Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary  Education in LithuaniaAndreas Schleicher_ Strengthening Upper Secondary  Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary Education in Lithuania
 
Digital Footprints to Career Pathways - Building a Strong Professional Online...
Digital Footprints to Career Pathways - Building a Strong Professional Online...Digital Footprints to Career Pathways - Building a Strong Professional Online...
Digital Footprints to Career Pathways - Building a Strong Professional Online...
 
Peninsula Channel Commanders Rules Handbook
Peninsula Channel Commanders Rules HandbookPeninsula Channel Commanders Rules Handbook
Peninsula Channel Commanders Rules Handbook
 
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
 
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
 
Candace-Stone project& portfolio 1 class
Candace-Stone project& portfolio 1 classCandace-Stone project& portfolio 1 class
Candace-Stone project& portfolio 1 class
 

c++ please Write a recursive function that takes a string pa.pdf

  • 1. c++ please Write a recursive function that takes a string parameter and prints the string in reverse order changing every lower case letter to upper case and every upper case letter to lower. Rewrite your solution to the first solution above so that it returns the reversed string rather than printing it. Input the string in main, pass it to the function, and have main() print the value returned. You may not use any functions you dont write to solve this problem, other than standard string manipulation functions. this a 2 part question, if anyone could help with both of these it would be greatly appreciated.