Submit: One python file __name__ == \"__main__\" Screenshot of sample output Be sure to: Comment your code, classes and...

80.2K

Verified Solution

Question

Programming

Submit:

  • One python file __name__ == \"__main__\"
  • Screenshot of sample output

Be sure to:

  • Comment your code, classes and functions! Practice practicepractice!
  • Use meaningful variables
  • If you do not I will remove points

Dog Walker Program

  • Create a program for a Dog Walking company to keep track of itsemployees, customers, and customer dogs
  • You will need the following classes:
    • Person
      • With the following attributes:
        • name
        • id_number
        • dogs : list of Dog objects
      • With the appropriate setters and getters
      • With the following subclasses:
        • DogWalker(Person)
          • With the following attributes:
            • hourly_rate : float
          • With the appropriate setters and getters
        • Customer(Person)
          • With the following attributes
            • amount_owed : float, how much they currently owe
          • With the appropriate setters and getters
    • Dog
      • With the following attributes
        • name
        • breed
        • weight
        • hours_walked
      • With the appropriate setters and getters

Programming language: Python

requirement: please follow up the rules per demonstratedabove

Answer & Explanation Solved by verified expert
4.4 Ratings (786 Votes)
CODEmainpyfrom includePerson import Personfrom includeDog import Dogfrom includeCustomer import Customerfrom includeDogWalker import DogWalkermain methoddef main list of dogs dogs adding dogs dogsappendDogBrutusGerman Shepherd7454 dogsappendDogTommyPomerian5436 instantiating dogWalker and Customer objects dogWalker DogWalker25Sam24dogs customer Customer435Bob3dogs printing the details printDog Walker printdogWalker printnCustomer printcustomerif name main mainDogspyclass Dog constructor and member    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students