When you find a new word, the accent is telling you how to pronounce it. Just think of some example words and you'll see:

esperanza : you see no accent, so as it ends in vowel (or 's' or 'n'),...