Question: Write a program that prompts the user to enter input. The program determines if the input is a valid or invalid. All alphabetic letters are

Write a program that prompts the user to enter input. The program determines if the input is a valid or invalid.
All alphabetic letters are lower case, like "c programming!",
Non alphabetic letters can only be digits, white space, exclamation point, question mark, or period.
Arrays are not allowed to solve this problem.
The user input ends with the user pressing the enter key (a new line character). Make input characters command line arguments.
The program should also check if the number of arguments on the command line is greater than 2(including ./a.out as one of the arguments). If the number of arguments is not greater than 2, the program should print "invalid number of arguments".
 Write a program that prompts the user to enter input. The

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!