This question is based on William Shakespeare’s Hamlet. Hamlet: Suit the action to the word,…