Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
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).
Expert Solution
arrow_forward
Step 1
I am using Player class
Algorithm:
- Start
- Implement Player class with Attributes name, uniformNumber, height, weight, and salary.
- Implement a constructor to Initialize the data
- Implement __str__() to print Player data
- Outside the class, create 3 objects of Player class and print player data
- Stop
Step by stepSolved in 4 steps with 2 images
Knowledge Booster
Similar questions
- please may you : create a Python class named Animal with properties for name, age, and a method called speak. also include an initializer method for the class and demonstrate how to create an instance of this class. and extend the Animal class by adding a decorator for one of its properties (e.g., age). please include both a getter and a setter for the property, and demonstrate error handling.arrow_forwardRefer to the following interface: Provide two examples (screenshots) that in many ways could improve the above or similar interface using the principles of direct manipulation. Explain the relevant improvements as well. (Examples might have different object, labels and organization)arrow_forwardDraw the UML diagram for the class. Implement the class. Write a test program that creates an Account object with an account ID of 1122, a balance of $20,000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2,500, use the deposit method to deposit $3,000, and print the balance, the monthly interest, and the date when this account was created.arrow_forward
- MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST FORM.arrow_forwardTHIS NEEDS TO BE DONE IN C#!! The Tourtise and The Hair In this lab, we will be simulating the classic race of the tourtise and the hare. The race will take place on two paths of 70 tiles, which spans from left to right. The path will have two lanes, one for each animal. The path will be represented as an array of 70 characters, where each character will be the following: · A dash(i.e, “-“), which represents an empty tile. · An “h”, which represents the hare on the hare lane. · A “t”, which represents the tourtise on the tortise lane. All tiles will be “empty” (i.e. set to the dash) with the exception of the tiles that are occupied by the animals. As the animals move, the previous tile the animal was on will be set to empty, and the new tile will be changed to either “h” or “t”. Tile 70 will be the finishing tile, and the first animal to that tile will be declared the winner of the race. We will use randomization to determine how far each animal will move. Since this race will be…arrow_forwardSelect all the statements that are true about Python's unittest module and Django's test framework: a. Django's test framework builds on Python's unittest module b. Django's TestCase class is a sub-class of unittest.TestCase c. A collection of unit tests is called a "test suite" d. Unit tests are run using the same database that the programmer uses for the development server e. HTML assert methods (such as assertHTMLEqual) are already part of Python's unittest.TestCasearrow_forward
- Hi, this is a java programming question with direction of what to do. I'm just gonna attach the question sheet. Implement the following class diagram (diagram in attached photo)setFirstName() method should set the firstName attribute of the class.setLastName() method should set the lastName attribute of the class.setSpecialization() method should set the specialization attribute of the Doctor class.setHealthnumber() method should set the healthNumber attribute of the Patient class.setIllness() method should set the illness attribute of the Patient class.If you are not comfortable with set methods, you are free to create your own constructors to set the attribute values.Create a HospitalApplication class which contains the main method. Inside the main method the following should be done in the order mentioned. (Any other ordering would not guarantee full marks).Prompt for the following inputs for 5 Doctors. (Use for loops)• First name• Last name• SpecializationValid specializations…arrow_forwardMake C#(Sharp) with visual studio: Make a class and list of books with the following data: { ISBN="1234-45-34-3939", Title = "The Long Road", Publisher="New York", Price=25.00, Copyright=2016 }, { ISBN="988-65-34-9012", Title = "The Warrior", Publisher="McGraw", Price=55.00, Copyright=2013 }, { ISBN="8712-45-84-2539", Title = "Yesterday", Publisher="New York", Price=67.00, Copyright=2016 }, { ISBN="1234-78-99-3478", Title = "Programming Essentials", Publisher="Dalton", Price=35.00, Copyright=2015 }, { ISBN="8356-89-33-3251", Title = "Hello World", Publisher="Chicago Press", Price=115.00, Copyright=2016 }, Using LINQ Query or LINQ Method to perform and display results for the following: 1. Display ISBN, Title, Publisher for all books where Publisher is New York. 2. Display all fields for all books in descending order by Copyright 3. Display all fields for all books in descending order by Copyright Where Publisher is New York 4. Display ISBN, Title for all books with copyright greater…arrow_forwardelow for each class you find a UML and description of the public interface. Implementing the public interface as described is madatory. There's freedom on how to implement these classes.The private properties and private methods are under your control.. There are multiple ways of implementing all these classes. Feel free to add private properties and methods. For each object, it's mandatory to create a header file (.h), implementation file (.cpp) and a driver. Blank files are included. The header should have the class definition in it. The implementation file should contain the implementations of the methods laid out in the header fine. And finally the Driver should test/demonstrate all the features of the class. It's best to develop the driver as the class is being written. Check each section to see if there are added additional requirements for the driver. Two test suites are included so that work can be checked. It's important to implement the drivers to test and demonstrate…arrow_forward
- Hi! Below I've attached my current code. I've been trying to fix it but it was not working. The correct output is below, as well as my current output. The specifications are: IN PYTHON: In the code template below, you are given three classes: Card, CardSet, and Deck. The Card class has the attributes of value and suite, which describe the cards in a standard 52-card deck. The attribute value takes in the digits 1 to 10 as well as the standard face cards, Jack, Queen, and King. The suite attribute takes in the four suites, namely clubs, spades, hearts, and diamonds. Obviously, two cards are equal if they have the same value and suite. The CardSet class is just an ensemble of Card instances. To know which cards are in your set, just iterate through the cards via the view method. This gets a formatted list of your cards in the cards attribute. To add cards to your set, use the add_cards method. The Deck class is a child class of the CardSet class. To initialize a deck, all 52 cards…arrow_forwardDeclaring a variable with only "type" is sufficient. The data type and other characteristics of a variable may be used to locate it. The next step is to figure out how to use this framework to describe any variable.arrow_forwardCourse: Object oriented programming "Java". Write a simple program (using Java) that contains a static method. Briefly explain the difference between static and non-static methods.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY