The designations $1 \mathrm{A}$ through $8 \mathrm{A}$ used for certain families of the periodic table are helpful for predicting the charges on ions in binary ionic compounds. In these compounds, the metals generally take on a positive charge equal to the family number, while the nonmetals take on a negative charge equal to the family number minus $8 .$ Thus the compound between sodium and chlorine contains $\mathrm{Na}^{+}$ ions and $\mathrm{Cl}^{-}$ ions and has the formula NaCl. Predict the formula and the name of the binary compound formed from the following pairs of elements.
a. Ca and N
b. $K$ and 0
c. $\mathrm{Rb}$ and $\mathrm{F}$
d. $\mathrm{Mg}$ and $\mathrm{S}$
e. Ba and I
f. Al and Se
g. Cs and $P$
h. In and Br