correct the errors in the code- College Paper Lab | collegepaperslab.com
College Paper Lab
correct the errors in the code- College Paper Lab | collegepaperslab.com
I have a code and there are some errors and i they are specified.
The code is attached.
The errors:
Run 1:
Enter number of users and card number:
5
4246345689049834
6762875510376451
5572095122524082
6011875510376451
371916424402350
4388576018410707
4388576018410707
4388576018410707
4388576018410707 -> I expect only 5 times instead of 10 times.
Run 2:
Enter number of users and card number: -> Input is not matching with the requirements. Name missing.
1
6762875510376451
6762875510376451 -> Should only ask once.
6762875510376451’s Maestro Credit Card -> Name missing
6762875510376451 is invalid
Enter expiration date 4 digits MMYY: -> Part B should execute for the valid cards only
0522
Enter valid CVV number :
123
Valid -> Output not matching with requirements
BUILD SUCCESSFUL (total time: 1 minute 12 seconds)
Run 3:
Enter number of users and card number:
2
6011875510376451
5572095122524082
5572095122524082
6011875510376451 -> Invalid number of inputs, and again name missing
6011875510376451’s MasterCard Credit Card -> I expect this to be a Discover card
5572095122524082 is valid
Enter expiration date 4 digits MMYY: -> which card is this for??
0222
Enter valid CVV number :
123
Valid -> which card is valid?
5572095122524082’s Discover Credit Card -> I expect this to be a MasterCard
6011875510376451 is valid
Enter expiration date 4 digits MMYY: -> Same thing which for which card is this information from the above list
0120
Enter valid CVV number :
123
Card not valid -> Output not matching the requirements
College Paper Lab – Check our website for more...
PLACE YOUR ORDER NOW
