Algorithm solution (in pseudocode):
1. Declare variables yourletter, theirletterthat hold a single character each.
2. Declare variables yourgrade, theirgrade thathold whole numbers.
3. Prompt
4. Read.
4A Convert percentage into single digit
5. Run code two times to get the values ofyourgrade and theirgrade andassign the letters to yourletter andtheirletter respectively.
6. ifyourletter = ‘E’ or theirletter = ‘E’
Print on the screen “Invalid input data, cannot determine who didbetter in the test!”
Stop the program returning a 1.
otherwise if yourletter is less than theirletter
Print on the screen “You did better inthe test, you need to help your partner”
otherwise if yourletter is more than theirletter
PayPal Gateway not configured
PayPal Gateway not configured