I need to solve the following problem:
Formalize the follwing sentences as logical sentences.
If its not raining I walk to work but if itīs raining i drive to work.
I dont drive to work if itīs not raining.
If dirve to work itīs raining but i walk to work if itīs not raining.
The following designations are to be used.
p= itīs raining
q= I walk to work
r= I drive to work
Please help me understand.