Problem:
Question- Write a class definition for an object that represents a dog. A dog has a name, breed, gender, and weight. A dog can do the following: bark() - display text "ruff ruff" sleep() - display text "zzzzz" display() - displays dog's information Write a main program that creates a dog.
Ask the user for a name and update the dog's name. Ask the user if they want to (b) have the dog bark (s) have the dog sleep (d) display the dogs information Allow the user to select any of those options as many times as they want.
Write the code step by step and explain it.