How to get Wi-Fi on an iphone? How do I figure out a password for Wi-Fi?

I don't have Wi-Fi on my home computer, I would like to get Wi-Fi on my iphone since I pay less for internet usage, whenever I try switch Wi-Fi on my phone, all of the Wi-Fi names are locked and it tells me to enter a password, I don't know the passwords. So how would I get Wi-Fi?

Go to settings and hit Wi-Fi. Turn the switch thing to on and wait for options. If it has a lock symbol next to it, you need to ask who ever lives/owns the building for it otherwise you can't use it. If not, click, connect, and enjoy! You can use without Wi-Fi though.

If it is locked then you can't use it unless you ask the owner for the password so you may use it.