Immoral vs. Unethical

By my definitions, immoral means violating my personal code, while unethical means violating my professional or societal code. So…

Billing someone for an hour of work when the job only took 10 minutes would be, to me, immoral but ethical.

A mercy killing could be moral but unethical.