Question: In C++, Write a program that will read the value of integer N and read up to N (characters) into an array and write the
In C++, Write a program that will read the value of integer N and read up to N (characters) into an array and write the letters back to the screen in the reverse order. The program should prompt the user to input all values and can determine whether the input has ended by a punctuation mark such as ! (make sure that youll include meaningful and intuitive messages to the user). Please note that C++ stores a string with an extra NULL character at the end to terminate the string so you cant just output the array from the last index back to 0.
For example, if the input is abcde!, the output should be edcba. Include appropriate messaging (UI, i.e., user interface) to the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
