Question: Please help me complete this C++ project. I provided the instructions, starter code and an expected output below. Please do NOT change the main function
Please help me complete this C++ project. I provided the instructions, starter code and an expected output below. Please do NOT change the main function of the started code!

bool isvalidcc(const string&); int main() { // // PLEASE DO NOT CHANGE function main // vector cardnumbers = { "371449635398431", "4444444444444448", "4444424444444440", "4110144110144115", "4114360123456785", "4061724061724061", "5500005555555559", "5115915115915118", "5555555555555557", "6011016011016011", "372449635398431", "4444544444444448", "4444434444444440", "4110145110144115", "4124360123456785", "4062724061724061", "5501005555555559", "5125915115915118", "5556555555555557", "6011116011016011", "372449635397431", "4444544444444448", "4444434444544440", "4110145110184115", "4124360123457785", "4062724061724061", "5541005555555559", "5125115115915118", "5556551555555557", "6011316011016011" }; int i; vector::iterator itr; for (i = 1, itr = cardnumbers.begin(); itr != cardnumbers.end(); ++itr, i++) { cout 
Assignment-03_PA_Run1.txt and Assignment-03_PA_Run2.txt PART B - Credit Card Number Validation, 5 points Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. The starting numbers are: 4 for Visa cards, 5 for MasterCard cards, 37 for American Express cards, and 6 for Discover cards. 1 2 3 4 5 Example: Validating 438 85 76018402 626 a) Double every second digit from right to left. If doubling of a digit results in a two-digit number, add the two digits to get a single digit number. b) Now add all single-digit numbers from Step a: 4+ 4 + 8 + 2+ 3+1 + 7 + 8 = 37 c) Add all digits in the odd places from right to left in the card number: 6 + 6 + 0 + 8 + 0 + 7 + 8 + 3 = 38 d) Sum the results from Step b and Step c: 37 + 38 = 75 e) If the result from Step d is divisible by 10, the card number is valid; otherwise, it is invalid. 4388576018402626 2*2 = 4 2+2 = 4 4*2 = 8 1*2=2 6*2 = 12 (1 + 2 = 3) 5*2 = 10 (1 + 0 = 1) 8 + 2 = 16 (1 + 6 = 7) 4+2 = 8 371449635398431 is valid 4444444444444448 is valid 4444424444444440 is valid 4110144110144115 is valid 4114360123456785 is valid 4061724061724061 is valid 5500005555555559 is valid 5115915115915118 is valid 5555555555555557 is valid 6011016011016011 is valid 372449635398431 is not valid 444 454 4 4 4 4 4 4 4 4 48 is not valid 4444434444444440 is not valid 4110145110144115 is not valid 4124360123456785 is not valid 4062724061724061 is not valid 5501005555555559 is not valid 5125915115915118 is not valid 7 8 9 10 11 12 13 14 15 16 17 18 Please implement Credit Card Number Validation: 1. Function main is provided. Please implement isvalidcc and other functions which you may add to the program. 2. Please do not change function main 3. Your program must produce identical output: Assignment-03_PB_Run.pdf C. C:\WINDOWS\system32\cmd.exe 1 371449635398431 is valid 2 4444444444444448 is valid 3 4444424444444440 is valid 4 4110144110144115 is valid 5 4114360123456785 is valid 6 4061724061724061 is valid 7 5500005555555559 is valid 8 5115915115915118 is valid 9 5555555555555557 is valid 10 6011016011016011 is valid 11 372449635398431 is not valid 12 4444544444444448 is not valid 13 44444344 1444440 is not valid 14 4110145110144115 is not valid 15 4124360123456785 is not valid 16 4062724061724061 is not valid 17 5501005555555559 is not valid 18 5125915115915118 is not valid 19 5556555555555557 is not valid 20 6011116011016011 is not valid 21 372449635397431 is not valid 22 4444544444444448 is not valid 23 4444434444544440 is not valid 24 4110145110184115 is not valid 25 4124360123457785 is not valid 26 4062724061724061 is not valid 27 5541005555555559 is not valid 28 5125115115915118 is not valid 29 5556551555555557 is not valid 30 6011316011016011 is not valid Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
