write the electron-dot formula for the following compound HCN,Co2,H2O@,O2,H2O

We can't write Lewis dot structures on this forum. Google Lewis dot structure of each of these and you can see how they look.

To write the electron-dot formula for a compound, you need to determine the number of valence electrons for each atom, then connect them by showing the sharing or transfer of electrons to form chemical bonds.

1. HCN (Hydrogen Cyanide):
The electron configuration of Hydrogen is 1s1, Carbon is 2s2 2p2, and Nitrogen is 2s2 2p3.

Hydrogen (H) has 1 valence electron.
Carbon (C) has 4 valence electrons.
Nitrogen (N) has 5 valence electrons.

So, the electron-dot formula for HCN is:
H:C::N:

2. CO2 (Carbon Dioxide):
The electron configuration of Carbon is 2s2 2p2, and Oxygen is 2s2 2p4.

Carbon (C) has 4 valence electrons.
Oxygen (O) has 6 valence electrons.

So, the electron-dot formula for CO2 is:
O=C=O

3. H2O+ (Hydronium ion):
The electron configuration of Hydrogen is 1s1, and Oxygen is 2s2 2p4.

Hydrogen (H) has 1 valence electron.
Oxygen (O) has 6 valence electrons.

So, the electron-dot formula for H2O+ is:
H-O

4. O2 (Oxygen gas):
The electron configuration of Oxygen is 2s2 2p4.

Oxygen (O) has 6 valence electrons.

So, the electron-dot formula for O2 is:
O=O

5. H2O (Water):
The electron configuration of Hydrogen is 1s1, and Oxygen is 2s2 2p4.

Hydrogen (H) has 1 valence electron.
Oxygen (O) has 6 valence electrons.

So, the electron-dot formula for H2O is:
H-O-H