Program for my friend who has problem to calculate salary