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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started