combining ardafruit fingerprint codes

hi im a newbie in the world of programming and arduino. and i have a mini project that i have to submit by next week. i am doing a biometric door lock project using an arduino uno, fingerprint scanner, lcd and a keypad.

the link above is exactly what im trying to achieve but i want my system to run the fingerprint code when a certain button is pressed on the keypad and likewise for the enroll code.

the problem is that i've been trying to combine or merge the fingerprint and enroll codes but to no success. below are the 2 codes that i am using for the project

can anyone please help me

thanks!

enroll.ino (5.69 KB)

fingerprint.ino (3.76 KB)

below are the 2 codes that i am using for the project

So? What is NOT below is your attempt to create a single program based on those examples, nor is there a description of what that program does or what you expect it to do, nor is there a description of how those things differ.

This is NOT the homework hotline. We do NOT do your homework for you.