It’s true that children depend in the parents for food, clothing and shelter.

next one :
The man’s heart attack scared him badly and he decided having a regular check up from then on.
i would change having to To have.

yes, and remember that it is a compound sentence. I'd do it as

The man’s heart attack scared him badly, and he decided to have regular check-ups from then on.

check up is a verb
checkup or check-up is a noun

To answer the first statement: "It's true that children depend on their parents for food, clothing, and shelter."

The statement acknowledges a commonly acknowledged fact that children rely on their parents to provide basic needs such as food, clothing, and shelter. This dependence stems from the fact that children are not typically able to provide these necessities for themselves. The truth of this statement can be supported by various evidence, such as sociological studies, anecdotal evidence, and common sense observations.

To address the second statement: "The man's heart attack scared him badly, and he decided to have a regular check-up from then on."

The original statement suggests that the man made the decision to engage in regular check-ups as a result of being scared by his heart attack. However, you want to change "having" to "have" in the sentence.

The modified sentence would then read: "The man's heart attack scared him badly, and he decided to have a regular check-up from then on."

This change from "having" to "have" reflects the correct use of the infinitive form of the verb "to have" in this context, indicating the man's decision to undergo regular medical check-ups.