"Enclosure" vs. "attachment"
Solution 1:
The major difference between attachments and enclosures in traditional media is really as slight as a staple or other mechanism of close placement physically binding the two documents together, and the terms tell the reader of the main document where to find the mentioned additional article. Enclosed tells me to look in the envelope, where attachment tells me to expect it to be bound to the main document.
What you describe is probably best termed enclosure if you are handing in a package containing a disk or jump drive, or attachment if it is printed source code stapled to the document.
Solution 2:
I'm not familiar with any term that fits into your description, and I'd imagine that neither will the recipient. I'd recommend keeping things simple and refer to the attached files exactly as they are. If you have attached source code that you want to reference, simply state "see attached source code" or "see attached source". If you are handing over an actual program or binary, simply reference it as "see attached program/software".