In wonderland, a man distribute his monthly salary among his family as follows: Half the salary goes
Fantastic news! We've Found the answer you've been seeking!
Question:
In wonderland, a man distribute his monthly salary among his family as follows:
Half the salary goes on general expenditure in the house.
One third of the remainder is spent on his car.
Out of the rest, one third is saved while the remaining part is shard among members of the family so that parents get twice as much as the children.
Write a program that allows you to input the salary of a person and the number of children he has and output the pocket money obtained by one of the parents and one child.
Posted Date: