ihave to contruct a tree in such a way output will in NEWICK format so plz recommend me which tool should output a NEWICK format representation of the tree
I'm going to go out on a limb (tree based pun not intended) and say... literally any.
Let’s start from WIKI introduction:
A very nice post with many different tools.
What Is A Good Phylogenetic Tree Display Program For Large Data Sets?
Most tree-building software should be able to export trees in Newick format. For example, the R package ape has a write.tree function that can do this.