Don't choose any wrong option for fear of unwanted pregnancy. Work with restraint, take a decision by keeping your mind calm.
Consult your friend whether you want to keep the child or not and how to convey this news to your parents.
If you feel that your parents will beat you up on hearing about unwanted pregnancy and it will be unbearable for you then you need legal advice.
Before talking about your pregnancy, keep in mind that your parents are happy or they have time. If they're under any kind of stress, you shouldn't talk about this subject.
If you're uneasy about telling your parents about your unwanted pregnancy, you need to convey this to them through other means. It can be a letter, an email, or a 3rd person.
Share your point with such a woman in the family who is fearless and all obey and listen whose words to. Gather courage and keep your point.
After placing the matter of unwanted pregnancy in front of the parents, listen to them carefully that what they want from you now and how they will take care of you.
Discuss the topic of your unwanted pregnancy with your family that what should be done next, if the matter is more confusing then do not miss taking legal help.
Improve your daily routine and adopt a healthy lifestyle. It is necessary to stay busy, do not let your sorrow dominate your profession.