In Finland these numbers are much lower for Juniors. Juniors start around 30-35k. Senior salary is about the same 50k but of course depending what you do and how hard you are to replace ;)
Please state clearly if you are talking about gross or net, and if net, what is included (e.g. in .nl you still have to pay health care insurance yourself).
In Paris, junior CS engineers usually start at 35k (gross), but it's not too hard to negotiate up to 45k after 2 or 3 years of experience. Wages are usually lower in the rest of France.
Most likeky 40k/13 = 3076 euros per month + an extra "bonus" month each year. Which should give about 2000~2500 euros net per month (depending on the local taxes) + an equivalent annual bonus.
40k euro/year would still be a (slightly) above average salary for a beginner programmer in Vienna, which is significantly wealthier than Berlin, so it still sounds a bit optimistic to me.