A Pennsylvania father pleaded guilty to child endangerment for abandoning his teenage daughter at a mall over a bad grade she received at school.

Tuan Huynh, 47, of Montgomery County, dropped his 16-year-old daughter off near Cheltenham Square Mall and told her she could not come home, Fox affiliate WTXF-TV reported. He told the teenager she no longer met her parents' expectations because she had received a bad grade on a calculus test, according to the station.

Assistant District Attorney Cara McMenamin told the station that the girl wandered around the Cheltenham Mall for hours before a minister finally approached her and called for help.

Huynh pleaded guilty to endangering the welfare of a child. He is not allowed to return home until he has completed parenting classes, the station reported.

Huynh could have faced up to five years in jail, but instead he will do two years of probation and 100 hours of community service.

More On This...

McMenamin claims Huynh had no remorse for what he did and said he can do with his child what he sees fit.

Click for more from MyFoxPhilly.com