Question: PLEASE HELP me write this code in C++. I am new to coding and dont even know where to begin. PLEASE HELP and make it
PLEASE HELP me write this code in C++. I am new to coding and dont even know where to begin. PLEASE HELP and make it as SIMPLE as possible so i can understand it. 

Credit card numbers follow certain patterms. A credit card number must have between 13 and 16 digits. It must start with: 4 for Visa 5 for Mastercard 37 for American Express 6 for Discover In 1954, Hans Luhn of IBM proposed an algorithm for validating credit card numbers. The algorithm is useful to determine whether a card number is entered correctly or whether a credit card is scanned correctly by a scanner. All credit card numbers are generated following this validity check, commonly known as the Luhn Check or the Mod 10 Check, which can be described as follows (for illustration, consider the card number 4388576018402626): 1. 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. 2 2-4 2 2-4 4*2=8 12-2 6+2.. 12 5*2.. 10 8*2=16 4*2=8 1+2=3 1+0=1 1+6=7 2. Now add up all the digits from step 1 3. Add all the digits in the odd places from right to left in the card number. 4. Sum the results from step 2 and step 3. 5. If the result from step 4 is divisible by 10, the card number is valid; otherwise it is 4+4+8+2+3+1+7+8=37 6+6+0 +8+0+7+8+3-38 3738-75 invalid. For example, the number 4388576018402626 above is invalid, but the number 4388576018410707 is valid Write a program that reads a credit card number as a string. Display the credit card number, type of credit card, length of credit card number and whether the credit card number is valid or invalid. There will be TWO versions of code in your program (execute a version based on user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
