Answer:
The laptop either does not have a battery or the battery no longer holds any charge, thus shutting down instantly.
Step-by-step explanation:
Most laptops will first try to their battery as a power source, and will then try to use their charger as a battery source. The charger icon is most likely showing up as fully charged because the laptop doesn't know there isn't a battery present, and assumes that it is fully charged.