ok ok i done this first problem with mapping
nnoremap <F5> :FloatermNew node %<CR>
but can anybody let me know that how i make function that check for file type you working on and with particular extension .cpp
ans .py
you give particular command for that instead of node , give g++ or python3.