Q.Apple tree with brown spots
We have an apple tree about 15 years old, inherited when we bought the house. It has brown spots and rotting fruit early in the season and some leaves are browning at the edges.

I'm sorry your Apple tree isn't doing well!
It sounds like your tree may be suffering from Black Rot. It's caused by a fungus.
There are other possibilities, though. These articles will help you identify and correct whatever is ailing your tree:
https://www.gardeningknowhow.com/edible/fruits/apples/apple-tree-diseases.htm
https://www.gardeningknowhow.com/edible/fruits/apples/black-rot-on-apple-trees.htm