Contents
Task 1...........................................................................................................................................................1
Task 2...........................................................................................................................................................3
Task 3...........................................................................................................................................................3
Task 4...........................................................................................................................................................6
Task 5.........................................................................................................................................................10
Task 6.........................................................................................................................................................11
Task 7.........................................................................................................................................................12
Task 8 D1&D2............................................................................................................................................13
Task 1
Data dictioaary
Microsoft Word
Document
I/O chaart
Stag Ioput Paricessiog Output
e
The program prompts for the user to enter “1” go to credit card input functon. Help will pop up.
“1” if user wants to contnue using credit “2” prompt help.
card checker or “2” if needs help
1 The program prompts for the user to enter Programs checks if credit card is 15- If credit card range is between 15-
input 15-16 digits’ credit card number 16 numbers long. 16 it will go to the next step.
Otherwise it will prompt that
number is too small/too big and
break the program.
2 N/A Credit card number is converted N/A
into array.
3 N/A Array is reversed N/A
4 N/A First numbers are checked for the N/A
card type.
5 N/A Multplies every even number by 2 N/A
followed by subtractngg from every
number which is 10 or more.
6 N/A Sums odd Sums Even N/A
7 N/A Adds odd and even into one value. N/A
Task 1...........................................................................................................................................................1
Task 2...........................................................................................................................................................3
Task 3...........................................................................................................................................................3
Task 4...........................................................................................................................................................6
Task 5.........................................................................................................................................................10
Task 6.........................................................................................................................................................11
Task 7.........................................................................................................................................................12
Task 8 D1&D2............................................................................................................................................13
Task 1
Data dictioaary
Microsoft Word
Document
I/O chaart
Stag Ioput Paricessiog Output
e
The program prompts for the user to enter “1” go to credit card input functon. Help will pop up.
“1” if user wants to contnue using credit “2” prompt help.
card checker or “2” if needs help
1 The program prompts for the user to enter Programs checks if credit card is 15- If credit card range is between 15-
input 15-16 digits’ credit card number 16 numbers long. 16 it will go to the next step.
Otherwise it will prompt that
number is too small/too big and
break the program.
2 N/A Credit card number is converted N/A
into array.
3 N/A Array is reversed N/A
4 N/A First numbers are checked for the N/A
card type.
5 N/A Multplies every even number by 2 N/A
followed by subtractngg from every
number which is 10 or more.
6 N/A Sums odd Sums Even N/A
7 N/A Adds odd and even into one value. N/A