Given a chemical formula for either an ionic or covalent compound, identify whether the compound is ionic or covalent.