To convert the mass of the dog from kilograms to grams, we use the conversion factor that 1 kilogram is equal to 1000 grams. Therefore, the mass in grams is calculated as follows:
\[
11.2 \, \text{kg} \times 1000 \, \frac{\text{g}}{\text{kg}} = 11200 \, \text{g}
\]
To convert the mass of the dog from kilograms to milligrams, we use the conversion factor that 1 kilogram is equal to 1,000,000 milligrams. Therefore, the mass in milligrams is calculated as follows:
\[
11.2 \, \text{kg} \times 1,000,000 \, \frac{\text{mg}}{\text{kg}} = 11,200,000 \, \text{mg}
\]
- The mass of the dog in grams is \(\boxed{1.12 \times 10^4 \, \text{g}}\).
- The mass of the dog in milligrams is \(\boxed{1.12 \times 10^7 \, \text{mg}}\).