Answer
p: I like the teacher.
q: The course is interesting.
r: I miss the class.
(p → ~r) ↔ q
Work Step by Step
p: I like the teacher.
q: The course is interesting.
r: I miss the class.
If I like the teacher, I do not miss class if and only if the course is interesting.
The symbolic representation is:
(p → ~r): If I like the teacher, I do not miss class.
(p → ~r) ↔ q: If I like the teacher, I do not miss class if and only if the course is interesting.