How to Make Computer Viruses?

To make computer viruses one must first go to school and major in Computer Science. Upon graduating, if one is so ill-morally inclined they may go work for a company that creates spyware and adware.