Note that in logic the phrase "only if" is equal to "if....then"
Here the statement is
"You can access the Internet from campus only if you are a computer science major or you are not a freshman"
The above statement is equal to
"If you can access the Internet from campus then you are a computer science major or you are not a freshman"
So, the correct answer is a → (c ∨¬f )