Computer Science, asked by jairaj469, 5 months ago


2. A person is paid 350 for each day he works and fined 30 for each day he
remains absent. Write a program to calculate and display his monthly income,
if he is present for 25 days and remains absent for 5 days.

Answers

Answered by sushmadevi8112007
0

Explanation:

Let the workman was absent for n days.

Hence, he was worked for (30−n) days.

His total wage2100=150×(30−n)−50n

⟹2100=4500−200n

⟹n=12

Hence, he was absent for 12 days.

Similar questions