# C# program credit card validation

this is for rookie programming class

as basic as possible

write C Sharpe console app NO ARRAYs

simple console application

Credit card validation Problem. A credit card number must be between 13 and 16 digits. It must start with:

–4 for visa cards

–5 for mater cards

–37 for American express cards

–6 for discover cards

•Consider a credit card number 4380556218442727

•Step1: double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit number.

•Step2: now add all the single digit numbers from step1

4 + 4 + 8 + 2 + 3 + 1 + 7 + 8

•Step3: add all digits in the odd places from right to left in the card number

7+ 7 + 4 + 8 + 2 + 5 + 0 + 3 = 36

•Step4: sum the results from step 2 and step 3

37 + 36 = 73

•Step 5: if the results from step 4 is divisible by 10, the card number is valid; otherwise, it is invalid. In this case, the card number is not valid – because 75 not divisible by 10. use modulus operator

Use these numbers to help test your code. Hint, these examples do not test all possibilities!

SAMPLE RUN:

Enter a credit card number as a long integer: 4321123200250

4321123200250 is invalid

SAMPLE RUN:

Enter a credit card number as a long integer: 4388576018410707

4388576018410707 is valid

Kỹ năng: Lập trình C#

Về Bên Thuê:
( 5 nhận xét ) marion, United States

Mã Dự Án: #13112321

## 42 freelancer đang chào giá trung bình \$25 cho công việc này

ta0soft

Hi I would be happy to help with your project :) I have over 12 years of experience with C# and .NET, I specialize in Windows applications and GUI design. I also have lots of experience with performing calculations and Thêm

\$35 USD trong 1 ngày
(87 Đánh Giá)
6.1
qprotex

Dear Client, My name is Miguel Febres and you can find my CV and certifications in the following links: [url removed, login to view] [url removed, login to view] I have many years of exper Thêm

\$30 USD trong 1 ngày
(13 Đánh Giá)
5.4
it2051229

Hi there, I went through the requirements and I would like to do this project if given the opportunity. I've done similar programs before and I am not new to C# and credit card number validation. Let me know if you are Thêm

\$30 USD trong 1 ngày
(92 Đánh Giá)
5.5
abhijitbuet

Maximum 1 hour task for me, can deliver best product surely. ................................ ............................................. ..............................................

\$20 USD trong 1 ngày
(65 Đánh Giá)
5.6
mauricemarinus

Hi there This is a simple assignment. I can have this done for you in the next 2-3 hours. Contact me to discuss Maurice Marinus

\$25 USD trong 1 ngày
(47 Đánh Giá)
5.2
dvfabia

Hi, Please accept my bid so that I can start working. I have read and understand your requirement. Regards, Daniel Fabia

\$15 USD trong 1 ngày
(46 Đánh Giá)
4.8
marko04

As soon you accepted me that app will be done :) I just wait confirmation from you and i will write that . First i will make it , than you will accept me and pay me. Hope to contact me.

\$15 USD trong 1 ngày
(3 Đánh Giá)
3.4
Agiletechstudio

Greetings! A team of Professional ASP.NET experts are at your service to provide you the best quality work in time and within budget. We are Proficient in: Asp.Net, C#, Asp.Net-MVC, SQL Server, Web APIs, Web Servic Thêm

\$97 USD trong 2 ngày
(3 Đánh Giá)
3.1
ercanoz

I have more than 10 years experience in c#. If i win this bidding this will be my first project on freelancer. Because of this my first goal at this bidding to have good reviews from you.

\$30 USD trong 1 ngày
(2 Đánh Giá)
2.9
SahibYar

Dear Valued Customer I am a full time Senior Engineer developing Enterprise solutions in C++ and .Net Technologies for about 3+ years. I know all the minor details of N-layer Architecture Software Design, Design Patte Thêm

\$30 USD trong 1 ngày
(10 Đánh Giá)
3.1

\$22 USD trong 2 ngày
(4 Đánh Giá)
3.0
\$25 USD trong 1 ngày
(5 Đánh Giá)
2.7
nzeemin

Hello. I can do it for you, not a problem. Have years of experience on .Net platform, both C# and VB.NET.

\$20 USD trong 2 ngày
(3 Đánh Giá)
2.4
\$100 USD trong 2 ngày
(2 Đánh Giá)
2.3
Meccano7

A proposal has not yet been provided

\$15 USD trong 1 ngày
(4 Đánh Giá)
2.1
itsjunaid421

We are team of professional web developers who work in all technologies. We always provide quality work within defined time and budget. We have read the description you provided and we want to work on your project and Thêm

\$25 USD trong 1 ngày
(1 Đánh Giá)
2.1
abhishekmodgi

I have 5 years of experaince as a web application developer developing web application using C# asp.net Sql.I have worked on html5 css3,javascript related libraries,angular js and jquery for past 2 years and have a goo Thêm

\$30 USD trong 1 ngày
(3 Đánh Giá)
1.6
Alvarommp

I'm working with C# for the last 16 years and I already wrote a credit card validation routine for several ecommerce sites; I will double check your specification with my validation routine make some tests and send it Thêm

\$25 USD trong 1 ngày
(2 Đánh Giá)
1.1
BubleTech

Hi, I am professional software engineer especially in .NET so can do your job in C# easily with best performance and in a professional way..... I have 2 years of experience but here i am new. thanks, ***New but T Thêm

\$30 USD trong 1 ngày
(1 Đánh Giá)
1.1
ghsoftlab

Hi, I'm an electronic and computer engineer with expert knowledge of C# programming. I reviewed specification You gave and I'm very interested to work on your project. I have experience with similar projects. I can Thêm

\$15 USD trong 2 ngày
(0 Đánh Giá)
0.0