Just do part 1 to 4, and I need this in 1.5 hours. So please get it done ASAP.
Write a program in C++ which does the following: NEED this ASAP ((VERY URGENT)). Keep in mind that the arguments are passed via command line arguments, so do not use 'cin'. Use argv to access the arguments.
1. If fewer than 3 arguments or more than 4 are passed via the command line, print 'p' to the console.
2. If the first argument is not "-r" or "-R", then the output shall be 'R'. The input should not be case sensitive.
3. If the second input argument is not "io" or "adc", then the output shall be 'C'. The input should not be case sensitive.
4. If the third input argument is not "portb", "portd", "pinc", or "5", then the console output shall be 'S'.
"-r", "io", and "pinc", respectively, the output shall be 'P'.