Answer:
Dear Adam,
please accept my apologies as I can't visit you. I know it has been really frustrating for you to be held up like this when you just want to prepare for the exam.
I woke up this morning with heavy cool and I have no desire to study for the exam. please accept my regards and apologies, I promise to study together for the next exam. Good luck with your exam.
Regards
your name