Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Due to lack of time, I need help with completing a c++ template/shell. I will add the description and the template below. Any help would
Due to lack of time, I need help with completing a c++ template/shell. I will add the description and the template below. Any help would be greatly appreciated. Thank you.
// Lab 9 - Program Shell - reverse.cpp #includeusing namespace::std; const int MAX_SIZE = 15; // Max word size of word, allow for '\0' void reverse(char word[]); // function prototype void main() { char word[MAX_SIZE]; cout > word; cout Write a C++ function that will reverse the characters in a C++ string The function prototype is void reverse( char word|) HE UND I Note: - The function can not have any work arrays, i.e., the function cannot have any local variables that are arrays. Note: - An Algorithm is outlined below: have 2 subscripts left and right find the 10' in the array and set right to be one less than the subscript where the 10 is located - set left to 0 - set up a while loop inside the while loop switch word[left] with word[right] - you will need a work char variable for the swith move left up by 1 and move right down by 1
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