Question: REVERSEARGS.CPP Write the program reverseArgs.cpp that takes command line input arguments and prints them back in reverse order. For example, if you ran the program

 REVERSEARGS.CPP Write the program reverseArgs.cpp that takes command line input arguments

REVERSEARGS.CPP Write the program reverseArgs.cpp that takes command line input arguments and prints them back in reverse order. For example, if you ran the program as ./reverseArgs first arg second_arg, you would get an output back of second_arg first_arg If you ran the program as ./reverseArgs 1 love gorgonzola cheese, but I hate toothpaste, you would get an output back of toothpaste hate I but cheese, gorgonzola love I. This is why I (lovingly) refer to this exercise as "the Yoda program".. If you ran the program with double quotes, then the words within should act as one unit. For example:./reverseArgs I would rather be at "Uc santa Barbara" would output: UC Santa Barbara at be rather would I. REQUIREMENTS: You are only permitted to use the iostream and (optionally) the cstdlib libraries. STYLING: You must follow the styling conventions that we have been discussing in class. I have posted a list of these conventions on Piazza. Additionally, the program must make good use of comments in the code, per the discussions we have been having in class. Again, proper styling and the presence of comments (and thier good use) will be checked by the instructor and the TAs. A session should look exactly like the following example (including whitespace and formatting - note that there is no whitespace at the end of each of these lines and each printed line has a newline at the end), with all manners of different numbers for inputs and the output: s /reverseArgs ./reverseArgs Hello Hello ?/reverseArgs Hello is it me me it is Hello /reverseargs Hello is it me "you're looking for?" you're looking for? me it is Hello s./reverseArgs You Are Not a Jedi! Jedil a Not Are You

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!