SlideShare a Scribd company logo
1 of 1
Download to read offline
Please solve the following question:
Create a C++ program that reads a short story from a file. The program must allow the user to
choose between 3 options:
1) to find the number of punctuation marks in the story
2) to print the story in reverse
3) for both
You need to write recursive functions for these features. Output your reversed string/story to a file
(output.txt). The output of the reversed story should have a normal page width.
Please explain what you did in the program step by step if possible. Thank You.

More Related Content

More from aggarwalopticalsco

Please to write a Rebuttal essay on these points 1 IP laws .pdf
Please to write a Rebuttal essay on these points 1 IP laws .pdfPlease to write a Rebuttal essay on these points 1 IP laws .pdf
Please to write a Rebuttal essay on these points 1 IP laws .pdfaggarwalopticalsco
 
Please type your asnwer for a better rating 4 Explain f.pdf
Please type your asnwer for a better rating    4 Explain f.pdfPlease type your asnwer for a better rating    4 Explain f.pdf
Please type your asnwer for a better rating 4 Explain f.pdfaggarwalopticalsco
 
Please tell me the correct answer for each question listed .pdf
Please tell me the correct answer for each question listed .pdfPlease tell me the correct answer for each question listed .pdf
Please tell me the correct answer for each question listed .pdfaggarwalopticalsco
 
Please solve the TODO parts of the following probelm incl.pdf
Please solve the TODO parts of the following probelm  incl.pdfPlease solve the TODO parts of the following probelm  incl.pdf
Please solve the TODO parts of the following probelm incl.pdfaggarwalopticalsco
 
Please solve the TODO parts include LinkedListcpph tem.pdf
Please solve the TODO parts  include LinkedListcpph tem.pdfPlease solve the TODO parts  include LinkedListcpph tem.pdf
Please solve the TODO parts include LinkedListcpph tem.pdfaggarwalopticalsco
 
Please solve the following problem Make a program that dete.pdf
Please solve the following problem Make a program that dete.pdfPlease solve the following problem Make a program that dete.pdf
Please solve the following problem Make a program that dete.pdfaggarwalopticalsco
 
please show steps Consider the function fxyzz968x63.pdf
please show steps Consider the function fxyzz968x63.pdfplease show steps Consider the function fxyzz968x63.pdf
please show steps Consider the function fxyzz968x63.pdfaggarwalopticalsco
 
please solve in Java language not in other language Instruct.pdf
please solve in Java language not in other language Instruct.pdfplease solve in Java language not in other language Instruct.pdf
please solve in Java language not in other language Instruct.pdfaggarwalopticalsco
 
please solve fast ND correctlyits urgent An animal that i.pdf
please solve fast ND correctlyits urgent An animal that i.pdfplease solve fast ND correctlyits urgent An animal that i.pdf
please solve fast ND correctlyits urgent An animal that i.pdfaggarwalopticalsco
 
please solve all parts as they are the same question but MCQ.pdf
please solve all parts as they are the same question but MCQ.pdfplease solve all parts as they are the same question but MCQ.pdf
please solve all parts as they are the same question but MCQ.pdfaggarwalopticalsco
 
Please show your calculations and complete the table 3 Co.pdf
Please show your calculations and complete the table  3 Co.pdfPlease show your calculations and complete the table  3 Co.pdf
Please show your calculations and complete the table 3 Co.pdfaggarwalopticalsco
 
Please show work on paper For the general loan of amount L t.pdf
Please show work on paper For the general loan of amount L t.pdfPlease show work on paper For the general loan of amount L t.pdf
Please show work on paper For the general loan of amount L t.pdfaggarwalopticalsco
 
please show work Rate of return Personal Finance Problem Ris.pdf
please show work Rate of return Personal Finance Problem Ris.pdfplease show work Rate of return Personal Finance Problem Ris.pdf
please show work Rate of return Personal Finance Problem Ris.pdfaggarwalopticalsco
 
Please show all steps and explain them Let X be a continuou.pdf
Please show all steps and explain them Let X be a continuou.pdfPlease show all steps and explain them Let X be a continuou.pdf
Please show all steps and explain them Let X be a continuou.pdfaggarwalopticalsco
 
Please represent the integer numbers in the following format.pdf
Please represent the integer numbers in the following format.pdfPlease represent the integer numbers in the following format.pdf
Please represent the integer numbers in the following format.pdfaggarwalopticalsco
 
Please respond to AI by stating which element of expectanc.pdf
Please respond to AI by stating which element of expectanc.pdfPlease respond to AI by stating which element of expectanc.pdf
Please respond to AI by stating which element of expectanc.pdfaggarwalopticalsco
 
please reference the work using the APA style and I dont wa.pdf
please reference the work using the APA style and I dont wa.pdfplease reference the work using the APA style and I dont wa.pdf
please reference the work using the APA style and I dont wa.pdfaggarwalopticalsco
 
please read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdfplease read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdfaggarwalopticalsco
 
Please show all necessary steps a Let 1XVarXpath d.pdf
Please show all necessary steps a Let 1XVarXpath d.pdfPlease show all necessary steps a Let 1XVarXpath d.pdf
Please show all necessary steps a Let 1XVarXpath d.pdfaggarwalopticalsco
 
please show solution in Mathematica A particle is undergoing.pdf
please show solution in Mathematica A particle is undergoing.pdfplease show solution in Mathematica A particle is undergoing.pdf
please show solution in Mathematica A particle is undergoing.pdfaggarwalopticalsco
 

More from aggarwalopticalsco (20)

Please to write a Rebuttal essay on these points 1 IP laws .pdf
Please to write a Rebuttal essay on these points 1 IP laws .pdfPlease to write a Rebuttal essay on these points 1 IP laws .pdf
Please to write a Rebuttal essay on these points 1 IP laws .pdf
 
Please type your asnwer for a better rating 4 Explain f.pdf
Please type your asnwer for a better rating    4 Explain f.pdfPlease type your asnwer for a better rating    4 Explain f.pdf
Please type your asnwer for a better rating 4 Explain f.pdf
 
Please tell me the correct answer for each question listed .pdf
Please tell me the correct answer for each question listed .pdfPlease tell me the correct answer for each question listed .pdf
Please tell me the correct answer for each question listed .pdf
 
Please solve the TODO parts of the following probelm incl.pdf
Please solve the TODO parts of the following probelm  incl.pdfPlease solve the TODO parts of the following probelm  incl.pdf
Please solve the TODO parts of the following probelm incl.pdf
 
Please solve the TODO parts include LinkedListcpph tem.pdf
Please solve the TODO parts  include LinkedListcpph tem.pdfPlease solve the TODO parts  include LinkedListcpph tem.pdf
Please solve the TODO parts include LinkedListcpph tem.pdf
 
Please solve the following problem Make a program that dete.pdf
Please solve the following problem Make a program that dete.pdfPlease solve the following problem Make a program that dete.pdf
Please solve the following problem Make a program that dete.pdf
 
please show steps Consider the function fxyzz968x63.pdf
please show steps Consider the function fxyzz968x63.pdfplease show steps Consider the function fxyzz968x63.pdf
please show steps Consider the function fxyzz968x63.pdf
 
please solve in Java language not in other language Instruct.pdf
please solve in Java language not in other language Instruct.pdfplease solve in Java language not in other language Instruct.pdf
please solve in Java language not in other language Instruct.pdf
 
please solve fast ND correctlyits urgent An animal that i.pdf
please solve fast ND correctlyits urgent An animal that i.pdfplease solve fast ND correctlyits urgent An animal that i.pdf
please solve fast ND correctlyits urgent An animal that i.pdf
 
please solve all parts as they are the same question but MCQ.pdf
please solve all parts as they are the same question but MCQ.pdfplease solve all parts as they are the same question but MCQ.pdf
please solve all parts as they are the same question but MCQ.pdf
 
Please show your calculations and complete the table 3 Co.pdf
Please show your calculations and complete the table  3 Co.pdfPlease show your calculations and complete the table  3 Co.pdf
Please show your calculations and complete the table 3 Co.pdf
 
Please show work on paper For the general loan of amount L t.pdf
Please show work on paper For the general loan of amount L t.pdfPlease show work on paper For the general loan of amount L t.pdf
Please show work on paper For the general loan of amount L t.pdf
 
please show work Rate of return Personal Finance Problem Ris.pdf
please show work Rate of return Personal Finance Problem Ris.pdfplease show work Rate of return Personal Finance Problem Ris.pdf
please show work Rate of return Personal Finance Problem Ris.pdf
 
Please show all steps and explain them Let X be a continuou.pdf
Please show all steps and explain them Let X be a continuou.pdfPlease show all steps and explain them Let X be a continuou.pdf
Please show all steps and explain them Let X be a continuou.pdf
 
Please represent the integer numbers in the following format.pdf
Please represent the integer numbers in the following format.pdfPlease represent the integer numbers in the following format.pdf
Please represent the integer numbers in the following format.pdf
 
Please respond to AI by stating which element of expectanc.pdf
Please respond to AI by stating which element of expectanc.pdfPlease respond to AI by stating which element of expectanc.pdf
Please respond to AI by stating which element of expectanc.pdf
 
please reference the work using the APA style and I dont wa.pdf
please reference the work using the APA style and I dont wa.pdfplease reference the work using the APA style and I dont wa.pdf
please reference the work using the APA style and I dont wa.pdf
 
please read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdfplease read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdf
 
Please show all necessary steps a Let 1XVarXpath d.pdf
Please show all necessary steps a Let 1XVarXpath d.pdfPlease show all necessary steps a Let 1XVarXpath d.pdf
Please show all necessary steps a Let 1XVarXpath d.pdf
 
please show solution in Mathematica A particle is undergoing.pdf
please show solution in Mathematica A particle is undergoing.pdfplease show solution in Mathematica A particle is undergoing.pdf
please show solution in Mathematica A particle is undergoing.pdf
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Please solve the following question Create a C++ program th.pdf

  • 1. Please solve the following question: Create a C++ program that reads a short story from a file. The program must allow the user to choose between 3 options: 1) to find the number of punctuation marks in the story 2) to print the story in reverse 3) for both You need to write recursive functions for these features. Output your reversed string/story to a file (output.txt). The output of the reversed story should have a normal page width. Please explain what you did in the program step by step if possible. Thank You.