Step 1: Identify the position of each letter in the alphabet. For example, A=1, B=2, C=3, ..., Z=26.
Step 2: Write down the letters in the word 'GRAPE'. The letters are G, R, A, P, and E.
Step 3: Find the position of each letter: G is the 7th letter, R is the 18th letter, A is the 1st letter, P is the 16th letter, and E is the 5th letter.
Step 4: Write down the positions as numbers: G=7, R=18, A=1, P=16, E=5.
Step 5: Combine the numbers with dashes to form the code for 'GRAPE': 7-18-1-16-5.