Question: In c++ please , nothing else ECE 270 Test 2 12/18/2017 Honor code in effect Closed Book and Notes Group 1: 300 PM to 3:55
In c++ please , nothing else
ECE 270 Test 2 12/18/2017 Honor code in effect Closed Book and Notes Group 1: 300 PM to 3:55 PM Group 2: 4:.00 PM to 4.55 PM Group 3: starting at 5:00 PM to 5:55 PM n in 'Mandatory: Put your name at the top of your program as a For this test, one of three possible functions will be called by the user via command line argumens. of 100 points. Consider the following function and operations is called, evod, codr or fact. if the command line arguments for coder are i codr 123 keystring is a test Then coder would be called and print out the encoded and decoded message is true for all functions on the test comment main is . Each functiorn 20 points for a total of 80 points. The short answers at the end are worth 20 points for a total prototypes and function in which main will test argvt1] to see if one of the following for each string after the option codr. This except for main which calls the other functions. Note that only coder requires the is stored in argvl2]. For the other two functions, argv(2] will be the first integer string. Int mainlint arge, charargvm://call functions given below using command line arguments int evenodd(int number, int numArrayl://find number of evens and odds along with sum void coder(charmessage, charkeyV/The complete code is provided her el int length s strlen(messagel: int keyLength strlen(key): for (int i = 0; i 2 is even, 3 and codr to execute coder. This function will print out with argvi3) Again, note that [2) is the key. Command codr key string! string2- string 1, string2, etc will fac to execute factorial. This function will Fac 345624 120 argv1). The three operation codes are: or odd and print the sum of the even and odd execute eveodd. This function will print which entries are even Command line example (any output order is fine) 5 are odd and the sum is 10 each encoded and decoded command line argument line fogmdarg line format: string starting be encoded and decoded factorial of the ven integer. Example command line: ECE 270 Test 2 12/18/2017 Honor code in effect Closed Book and Notes Group 1: 300 PM to 3:55 PM Group 2: 4:.00 PM to 4.55 PM Group 3: starting at 5:00 PM to 5:55 PM n in 'Mandatory: Put your name at the top of your program as a For this test, one of three possible functions will be called by the user via command line argumens. of 100 points. Consider the following function and operations is called, evod, codr or fact. if the command line arguments for coder are i codr 123 keystring is a test Then coder would be called and print out the encoded and decoded message is true for all functions on the test comment main is . Each functiorn 20 points for a total of 80 points. The short answers at the end are worth 20 points for a total prototypes and function in which main will test argvt1] to see if one of the following for each string after the option codr. This except for main which calls the other functions. Note that only coder requires the is stored in argvl2]. For the other two functions, argv(2] will be the first integer string. Int mainlint arge, charargvm://call functions given below using command line arguments int evenodd(int number, int numArrayl://find number of evens and odds along with sum void coder(charmessage, charkeyV/The complete code is provided her el int length s strlen(messagel: int keyLength strlen(key): for (int i = 0; i 2 is even, 3 and codr to execute coder. This function will print out with argvi3) Again, note that [2) is the key. Command codr key string! string2- string 1, string2, etc will fac to execute factorial. This function will Fac 345624 120 argv1). The three operation codes are: or odd and print the sum of the even and odd execute eveodd. This function will print which entries are even Command line example (any output order is fine) 5 are odd and the sum is 10 each encoded and decoded command line argument line fogmdarg line format: string starting be encoded and decoded factorial of the ven integer. Example command line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
