While you wait for answers, we may have found some information which could help you.
Click here for Inspiron Battery Problemdell inspiron 5040 plugged in not charging?
How to fix dell Inspiron 5040 laptop windows 7?
The Dell adapter can't be recognized?