Question: Every program we will write in System Programming will be in C; since most of you have experience with C++ it will help to write
Every program we will write in System Programming will be in C; since most of you have experience with C++ it will help to write a program in both languages to allow you to compare and contrast the languages. Using the videos in Canvas as a starting point and using online references such as cppreference.com, complete the following task in both C and C++. Write a program that reads an unspecified number of strings and displays them in the reverse order they were entered. Your program should follow an outline similar to the following: 1. Inform the user that the program will read strings until "STOP" is entered 2. Loop a. Prompt the user for a string b. If the string is "STOP" break the loop, otherwise store it in an appropriate data structure 3. Inform the user that the data they will now be displayed in reverse 4. Display all the strings in reverse. 5. Free the space used by the data structure to store the strings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
