Question: python language, here is what the run should look like. here is the other half of the run, please try to get sam outcome for

 python language, here is what the run should look like. here

python language, here is what the run should look like.

is the other half of the run, please try to get sam

here is the other half of the run, please try to get sam outcome for the time being. thanks

outcome for the time being. thanks Programming Assignment: Dog class and its

Programming Assignment: Dog class and its client code Problem Statement: In this assignment you will write a simple Dog class and write a main method that helps user interact with a Dog. Specifically, . 1. Create a (simplistic) Dog class with the following requirements: Attributes: name: name of the dog o color: color of the dog o is Hungry: attribute that tells if the dog is hungry o weight attribute to hold the weight of the dog in KG A constructor: o This takes two required arguments (name and color) and one optional argument (weight) with a default value of 10. Initializes is Hungry to True. Methods o bark: a method that takes no parameters and prints a string of the form name: Woof Woof" where name is the name of the dog. eat: a method that takes no parameters. This method sets the isHungry attribute to False and adds 100gms to the weight of the dog. It then prints a string of the form "name: Chomp Chomp". o walk: a method that takes no parameters. This method will check if the dog is hungry. if so then it just calls the bark() method Else it decreases the weight of the dog by 100gms, sets the is Hungry attribute to Tnie and prints a string of the form "name: Step Step where name is the name of the dog o printStatus: a method that takes no parameters and prints a stnng of the fom: "name is color in color, weighs weight kg and is hungy" when the is Hungry is True or name is color in color, weighs weight kg and is not hungry when isHungry is False, using the name, color, weight and the is Hungry attributes of the dog object. Example: Willie is Brown in color, weighs 10.2 kg and is not hungry." . 2. Wnte a main method in the same file that a. creates an object from the Dog class having name Willie, color Brown and weight of 15kg b. Prompts the user repeatedly for the action to perfom, until user enters "Q" to quit. Prints "Invalid command" for any unrecognized command "S' for status to call the printStatus method of the dog object. 1 a. 2. Write a main method in the same file that creates an object from the Dog class having name "Willie", color Brown and weight of 15kg. b. Prompts the user repeatedly for the action to perform, until user enters "Q" to quit. Prints "Invalid command" for any unrecognized command. i. 'S' for status to call the printStatus method of the dog object. ii. F Por feeding the dog to call the eat method of the dog object iii. W for walking the dog to call the walk method of the dog object. iv. 'Q' for exiting the program. See the sample runs below. Submit the program in a file with a name of the form first_last_dog.py. Make sure to add a block-comment at the start of the file that lists assignment title, class name, date, your name, and assignment description. Follow naming conventions. Sami *Python 3.6.3 Shell File Edit Shell Debug Options Window Help - RESTART: C:/code/Python/Playground-120/Assignments/do Willie welcomes you! Woof woof Enter the command 'S' to get Status enquiry, 'W' to take it for a walk, Fi to feed the dog, 'O' to exit: S Willie is Brown in color weighs 15 kgs and is hungry. Enter the command 'S' to get Status enquiry, 'W' to take it for a walk, F Willie : Chomp Chomp 'Fto feed the dog, "O' to exit: Enter the command "S' to get Status enquiry, 'W' to take it for a walk, 'Fto feed the dog, "O to exit: S Willie is Brown in color weighs 15.1 kgs and is not hungry. Enter the command "S to get Status enquiry, *W' to take it for a walk, "F* to feed the dog, "O' to exit: w Willie : Step Step Enter the command S' to get Status enquiry, Wt to take it for a walk, F to feed the dog, O to exit: S Willie is Brown in color weighs 15.0 kgs and is hungry. Enter the command 'S' to get status enquiry, 'W' to take it for a walk, E to feed the dog. @ to exit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!