How is the atomic mass of an element determined?

A. by adding the masses of the protons and electrons

B. by adding the masses of the neutrons and electrons

C. by determining the number of protons

D. by adding the masses of the protons, neutrons, and electrons