What determines the pronunciation of the "u" in words like public or pupil?

I am confused as to how do you know automatically how to say the letter "u" in public, pupil, pub, puberty and others similar. Is there a key to knowing this?

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.