Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions Icon

Related questions

Question
100%

Please!! help me with this senario question in python coding laguage.

  1. Imagine you are creating a computer application that deals with whatever that thing is. Provide an example of a class, and some attributes (minimum 3) that you would keep track of. Here are a few examples (you may not use these, and you can’t use something that somebody else has already done, so make sure you read the other responses so you don’t repeat something already chosen):
  • I really like baseball, so I would have a Player class. The player would have a name, uniform number, height, weight, and salary.
  • I’m interested in Pokemon, so I would have a Pokemon class. The Pokemon would have a name, type, hit points, and a list of abilities.
  • I am into skateboarding, so I want to keep track of good skate spots in the area. My SkateSpot class would have a name, location (latitude and longitude), address, description, and photographs.

2. Create actual Python code- a class definition- for whatever you picked above. Your class should have attributes, an __init__ method, and a __str__ method.

3. Instantiate 3 different objects using the class you created in (2).

Expert Solution
Check Mark
Step 1

I am using Player class

Algorithm:

  1. Start
  2. Implement Player class with Attributes name, uniformNumber, height, weight, and salary.
  3. Implement a constructor to Initialize the data
  4. Implement __str__() to print Player data
  5. Outside the class, create 3 objects of Player class and print player data
  6. Stop
Knowledge Booster
Background pattern image
Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Computer Networking: A Top-Down Approach (7th Edi...
    Computer Engineering
    ISBN:9780133594140
    Author:James Kurose, Keith Ross
    Publisher:PEARSON
    Text book image
    Computer Organization and Design MIPS Edition, Fi...
    Computer Engineering
    ISBN:9780124077263
    Author:David A. Patterson, John L. Hennessy
    Publisher:Elsevier Science
    Text book image
    Network+ Guide to Networks (MindTap Course List)
    Computer Engineering
    ISBN:9781337569330
    Author:Jill West, Tamara Dean, Jean Andrews
    Publisher:Cengage Learning
    Text book image
    Concepts of Database Management
    Computer Engineering
    ISBN:9781337093422
    Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
    Publisher:Cengage Learning
    Text book image
    Prelude to Programming
    Computer Engineering
    ISBN:9780133750423
    Author:VENIT, Stewart
    Publisher:Pearson Education
    Text book image
    Sc Business Data Communications and Networking, T...
    Computer Engineering
    ISBN:9781119368830
    Author:FITZGERALD
    Publisher:WILEY