Hi, i'm new to java, can someone help to solve this 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 shared 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.