Modafinil is a prescribed drug that makes users feel more awake. It does this by increasing alertness…