Could you please help me write a program using basic or visual basic that would prevent spam/unsolicited e-mails computers.
You have to be kidding. If not, you need a reality check. Do you actually think anyone will do that for you free? Tens of hours are involved, maybe even weeks. And, of course, the program has to be an add-on to a specific email handler.
and while they are at it, why don't you ask them to develop a pill that will prevent cancer, and a spray which will stop people from committed very violent acts.