Question: Homework O: Personal Space will test your ability to: Write and compile a simple C++ program Recieve and parse command line arguments (with help from

Homework O: "Personal Space" will test your ability to: Write and compile a simple C++ program Recieve and parse command line arguments (with help from the template) Perform basic control flow and loops (as discussed in ECE 175) Program Requirements You are to write a program to the following specifications: 1. Your program shall recieve an unknown number of integer type command line arguments. 2. Your program shall print a greeting and the appropriate statement from Mr. Phillip Jacobs (the host of "The Personal Space Show") for each command line argument given an interger command line argument. E.g., if the command line argument is "1", print "One: Personal Space". E.g., if the command line argument is "7", print "Seven: Keep away from dat personal space". 3. Your program shall print "N: Number not recognized" where N is some integer outside of [1, 9]. E.g., if the command line argument is "101", print "101: Number not recognized". Below see two examples. Note that line starting with "#" should not be printed in your program and are there only to provide human and machine readable information. An example with one command line argument: # Command arguments: 6 # Solution: Welcome to the Personal Space Show!! Six: Stay away from my personal space Another example with multiple command line arguments: # Command arguments: 1 2 3 4 5 6 7 8 9 # Solution: Welcome to the Personal Space Show!! One: Personal space TWO: Personal space Three: Stay out of my personal space Four: Keep away from my personal space Five: Get outta dat personal space Six: Stay away from my personal space Seven: Keep away from dat personal space Eight: Personal space Nine: Personal space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
