First, when 了 comes right after the verb, it may be not perfect tense, and could be present progressive tense,
for example: 他睡觉了 (He is sleeping.)
If you want to express something has been done, you can add 过 between the verb and the noun.
for example: 他睡过觉了 (He has slept. It indicates that he is awake now)
Why 了 in the end of the sentence here?
My answer is that We like to add a noun after a verb to make the meaning specific.
你做什么了? 做 is verb, 什么 is noun, we regard them as a whole.
for example: 我在吃饭, 吃 is verb 饭 is noun. we don't use 吃 alone here.
but in some cased noun can be omitted.
谢谢您应对我 is not correct, you can say 谢谢你的回答!