Question: Hello i want code where it will print out the following error messages when the specfic argument case is passed through the code. for N,
Hello i want code where it will print out the following error messages when the specfic argument case is passed through the code.
for N, the integer is in the first argument
ex. 1 all emptyfile
this would be one of the command line arguments being passed
You must detect the case where no arguments are passed. In that case, print the error message NO
PHRASE LENGTH and stop.
You must detect the case where the argument specified for N is not an integer. In that case, print the
error message INVALID PHRASE LENGTH and stop, also if the integer is negative
Print NO MODE if a second argument is missing
Print INVALID MODE if the second argument is something other than all or top
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
