Before giving machines a sense of morality, humans have to first define morality in a way computers can process. Dr.…