Does the deceased hear the supplications or recitations of those visiting his/her grave? And does making constant supplications for the deceased who didn`t adhere to performing the prescribed prayers ameliorate his/her affliction?
Praise be to Allah the Lord of the Worlds.
In principle, the dead hear the living since it has been rigorously authenticated that the Prophet (PBUH) ordered the bodies of the idolaters slain in the Battle of Badr to be buried. He then approached them and called them one by one and said: "Have you found what your Lord promised to be true for we have found what our Lord promised us to be true." Umar asked him: "O messenger of God! Why do you speak to lifeless bodies?" The Prophet (PBUH) replied: "By the One Who has sent me with the truth! You do not hear my words better than they do except that they cannot respond." [Agreed upon].
However, not all the deceased are in the same situation because Allah The Almighty Knows: "Before them is a Partition till the Day they are raised up." [Al-Mu`minun/100]. Moreover, supplication reaches the deceased. And Allah Knows Best..
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Is Zakah (obligatory charity) due on articles of merchandise even if they were stacked in the merchant`s stores for years?
Yes, Zakah is due on goods even if they were stacked in merchant`s stores for years, in this manner Islam struggle against monopoly.
My father passed away before my grandfather. Am I entitled to any share of my grandfather`s inheritance?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
According to Islamic courts, you are entitled to what is called obligatory bequest (The distribution of estate to grandchildren who has either lost a parent before the death of the grandparents). Therefore, if your grandfather left such bequest for you, then take that share or else it is more prudent to take nothing. And Allah The Almighty Knows Best.