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 a man to marry up to four wives (polygamy in Islam) for pleasure although he can`t afford that?
It is desirable for the man to have one wife if there was no need for him to have more, if he can't afford marriage forthcoming expenses.
Should a pregnant woman who broke fast because of pregnancy make it up, and is a ransom due on her?
The pregnant and the suckling, if they fear for their health, may break their fast and make up for it, and no ransom is due on them. However, if they broke fast in fear for the fetus and the baby, then they are obliged to make up for it, and pay the ransom which is feeding a needy person for each of the missed fasting days. And Allah Knows Best.
What is the ruling on determining the sex of the baby whether through killing the female spermatozoa, or any other way in order to have a male?
If it is done through having a certain type of food, taking a certain type of medication, or organizing the time of the marital relation, then it is permissible.