# 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

Taidot: C# -ohjelmointi

( 5 reviews ) marion, United States

Projektin tunnus: #13112321

## 42 freelanceria on tarjonnut keskimäärin 25 \$ tähän työhön

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 Lisää

35 \$ USD 1 päivässä
(87 arvostelua)
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 Lisää

30 \$ USD 1 päivässä
(13 arvostelua)
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 Lisää

30 \$ USD 1 päivässä
(92 arvostelua)
5.5
abhijitbuet

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

20 \$ USD 1 päivässä
(65 arvostelua)
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 1 päivässä
(47 arvostelua)
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 1 päivässä
(46 arvostelua)
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 1 päivässä
(3 arvostelua)
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 Lisää

97 \$ USD 2 päivässä
(3 arvostelua)
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 1 päivässä
(2 arvostelua)
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 Lisää

30 \$ USD 1 päivässä
(10 arvostelua)
3.1

22 \$ USD 2 päivässä
(4 arvostelua)
3.0
25 \$ USD 1 päivässä
(5 arvostelua)
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 2 päivässä
(3 arvostelua)
2.4
100 \$ USD 2 päivässä
(2 arvostelua)
2.3
Meccano7

A proposal has not yet been provided

15 \$ USD 1 päivässä
(4 arvostelua)
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 Lisää

25 \$ USD 1 päivässä
(1 arvostelu)
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 Lisää

30 \$ USD 1 päivässä
(3 arvostelua)
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 Lisää

25 \$ USD 1 päivässä
(2 arvostelua)
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 Lisää

30 \$ USD 1 päivässä
(1 arvostelu)
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 Lisää

15 \$ USD 2 päivässä
(0 arvostelua)
0.0