Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a function called, revense(), to return a copy of the input string but wit

ID: 3694983 • Letter: W

Question

Write a function called, revense(), to return a copy of the input string but with characters in reverse order. string reverse(const strings s); //Returns a copy of but with characters in reverse order. 6. Write a function called makeLower as following; //returns are that feat all uppar case characters foread to lowar case. //othar character unchanged. makeLower case string. which provides //tolower. Uses (or ) 7. Using the makeLower function from problem 6, show the trace of the following input string "ADAm".

Explanation / Answer

string reverse(const string s)
{

int len,j=0;
string rs;
len = s.size();
for(int i=len-1;i>=0;i--)
{
   rs[j]=s[i];
   j++;
}

return(rs);
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote