Question
Hi can you guys please help me with this question, and keep it in entry level c++ programming ... thank you! Create a program that
Hi can you guys please help me with this question, and keep it in entry level c++ programming ... thank you! Create a program that includes a function called reverse that takes a string and returns a string in the reverse order. For example, given hello as the input, the function should return olleh, which is the reversed string of hello. The main function should keep prompt the user to input a string until the user types Q For each string input call the function with the string and display the result. Note that the user input string may contain white spaces. Test your program with the following input. a) Hello (your program should display olleH) b) CBU (your program should display UBC) c) C++ is fun! (your program should display !nuf si ++C) d) Q (should exit the program)
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