Studying in a mixed environment is haraam, and it causes a great deal of mischief in society. What the sister says in her question is only a small part of the results of forbidden mixing.
We advise everyone who wants to protect himself and not to fall into that which Allaah has forbidden to keep away from these mixed places as much as possible, whether that is for study or for work, because of the things involved that go against sharee’ah and because of the evils to which they may lead.
What the questioner has mentioned about her friend is very unfortunate; we ask Allaah to guide her and bring her back to the right path. Your duties towards her are to offer sincere advice and guidance, and to remind her of Allaah and that death is real, and that this world does not last.
Allaah has created Paradise for those who obey Him, and He has created Hell for those who disobey Him. If she responds to the advice then praise be to Allaah. If she insists on committing sin and following the path of the Shaytaan, then Allaah says (interpretation of the meaning):
“The duty of the Messenger [i.e. Our Messenger Muhammad whom We have sent to you, (O mankind)] is nothing but to convey (the Message)”
“And remind (by preaching the Qur’aan, O Muhammad), for verily, the reminding profits the believers”
“So remind them (O Muhammad) — you are only one who reminds.
22. You are not a dictator over them”
“O you who believe! Take care of your ownselves. If you follow the (right) guidance [and enjoin what is right (Islamic Monotheism and all that Islam orders one to do) and forbid what is wrong (polytheism, disbelief and all that Islam has forbidden)] no hurt can come to you from those who are in error”
Try to look for righteous friends who can help you to adhere to the truth. Beware of sitting with bad companions, for Allaah says (interpretation of the meaning):
“And it has already been revealed to you in the Book (this Qur’aan) that when you hear the Verses of Allaah being denied and mocked at, then sit not with them, until they engage in a talk other than that; (but if you stayed with them) certainly in that case you would be like them. Surely, Allaah will collect the hypocrites and disbelievers all together in Hell”
And Allaah is the Source of strength.