It may not be a good idea, Bill, but it's not a code violation. My house was wired with switched outlets. Not all the outlets, but only the one nearest the switch. That never seemed to be the one we wanted to plug a lamp into. I don't think this is a good idea either.

I don't want to sound rude about this, but maybe you should have provided your friend with an electrical print approved by the local building department, which your friend could have discussed with you so there wouldn't have been this misunderstanding. (Thank you, thank you, this is the world record for the longest run-on sentence)

Dave