Question
Given input.txt : {name:Justin. Rock,age:27,gender:male},{na me:Alison.Summer,age:56,gender:female}, {name:JJ.Wing,age:18,gender:male},{name:katy.smith,ag e:20,gender:female}, {name:Th omas.Eva,age:16,gender:male},{name:Kacy.Hicks,age:35,gender:female} There are space between them. Also given that command.txt: AGE:20 output.txt should be {name:katy.smith,age:20,gender:female} Given
Given input.txt : {name:Justin. Rock,age:27,gender:male},{na me:Alison.Summer,age:56,gender:female}, {name:JJ.Wing,age:18,gender:male},{name:katy.smith,ag
e:20,gender:female}, {name:Th omas.Eva,age:16,gender:male},{name:Kacy.Hicks,age:35,gender:female}
There are space between them.
Also given that command.txt: AGE:20
output.txt should be {name:katy.smith,age:20,gender:female}
Given the input.txt and command.txt. if the key words/string in the command.txt matches the one from the input.txt. We should write the output to "output.txt". So, the output.txt should be: {name:katy.smith,age:20,gender:female}
PLEASE HELP USING C++ and also use recursion. The goal is here is to store the input into array and seach each element in the array that matches the command key words, if matches, output the the whole thing from the array like above. My idea is to store the input into string first and get rid of the white space. Also, notice one of the elment:
{name:katy.smith,ag
e:20,gender:female} is using two lines. After that, store it into array and make recursive function to find the element. This is a homework question, please help me, explain it as detail as possible. Thank you so much!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started