Why used there
Requirement 5 a: With your counselor’s approval, choose a sample program. Modify the code or add a function or subroutine to it. Debug and demonstrate the modified program to your counselor.
The Programming merit badge website, www.scoutlife.org/programming, has a number of sample programs that you could use for requirement 5a. However, you have the option of finding a program on your own. It’s a good idea to seek your merit badge counselor’s guidance.