We are meant to define a data dictionary and theencoding/decoding logic in flowchart format for this c++code.
The user enters a number with characters of 2 to 8.
If the number is a two digit number you swap the positions of thenumbers (eg: if the number is 56, altered number is 65).
2. If the number is a three digit number, digits at positions 1 and3 are swapped. (eg: number is 123, altered number is 321)
3. If the number is four digits or above the following rulesapply.
Replace the first digit by the remainder after the sum of thatdigit plus 1 is divided by
PayPal Gateway not configured
PayPal Gateway not configured