We can start by converting the mass of the bag of dog food from kilograms to grams:
8 kilograms = 8,000 grams
Then, we can divide the total mass of the bag of food by the daily amount given to the dog:
8,000 grams ÷ 100 grams/day = 80 days
Therefore, the bag of dog food will last for 80 days.