Question: Create a console project in C# Have users to enter name and credit card number, verify the information. 1. Name field: -- both first name

Create a console project in C# Have users to enter name and credit card number, verify the information. 1. Name field: -- both first name and last name must be entered separated by a single space. -- Only letters can be accepted. -- Use patten "\b[a-zA-Z]{2,15}\s[a-zA-Z]{2,15}\b" or ^[a-zA-Z]+ [a-zA-Z]$+ 2. Card Number field: -- Only digits can be accepted. -- Pattern: "^[0-9]{12,19}$" Reference: https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx

 Create a console project in C# Have users to enter name

md. Enter Name on Card: 343 Enter Name on Card (letters only, both first name and last name) dsf g454 Enter Name on Card (letters only, both first name and last name) dsfgdsfg Enter Name on Card (letters only, both first name and last name) Enter Name on Card (letters only, both first name and last name) dd Enter Name on Card (letters only, both first name and last name) gddfg dsfgdsfigdsfigdsfgdsfgdsffdgdsfgdsfghdsgf Enter Name on Card (letters only, both first name and last name) asdf ads fsad fsa Enter Credit Card Number dfgds Enter Credit Card Number: (12 to 19 digits): 454 Enter Credit Card Number (12 to 19 digits): 54365435643556754675467546754 Enter Credit Card Number (12 to 19 digits): Thank you for your Order. Press any key to continue

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!