Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago