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
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 continueStep 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