Give the IUPAC name for each of the following acids.
(a) 3-methoxybenzoic acid (b) 2-(3-methoxyphenyl)propanoic acid (c) 3-ethyl-2-pentenoic acid (d) cyclopentylethanoic acid