Hi my name is salman ahmad and i am computer science student. i want to know how can i setup a remote disktop connection between my pc and another pc on same wifi network?

If its the same local subnet, there isnt anything you need to do on the network side. You simply have to configure the target computer to:

1) allow remote desktop connections (System properties in target computer)
2) grant the user the permission (add user account to RDP Users group on target)

Then all you need to do is start the Remote Desktop client on your computer and connect to the target computer either by IP address or hostname if you have name resolution services available to you on that network.