Please!! help me with this senario question in python coding laguage. 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).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
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
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
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY