What is the method of programming a floppy?

You don't "program" a floppy, you 'format' it. The computer will generally do it for you when you first insert the disc.