Question: Please help and code with C++ thanks. Read input from a user that is intended to be a consist of a license number (such as
Please help and code with C++ thanks.
Read input from a user that is intended to be a consist of a license number (such as a driver's license number). If the input is not a valid license number, then ask again, and continue asking until the input is valid. We'll say, for the purposes of this problem, that a license number must follow these rules in order to be valid: It must consist only of uppercase letters and digits; anything else (including spaces) would make it invalid . The first and last characters must be uppercase letters. . There must be at least one digit (and any number of uppercase letters) in between. By these rules, the following are all valid license numbers: A123B, ABC1DEF, A1B2C3D4E. These would all be invalid: A123, 123B, ABCDEF, A1B2C3D4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
