Question

PlLEASE HELP !! Python II final project. Object Oriented Programming python.Make a program using OOP concepts....

PlLEASE HELP !! Python II final project. Object Oriented Programming python.Make a program using OOP concepts. Anything will work as long as it runs in idle.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#here we have class with name Employee

# 2 instance variables Id and name

class Employee:

def __init__(self,name,id):

self.id = id;

self.name = name;

#method to display the values

def display (self):

print("ID: %d \nName: %s"%(self.id,self.name))

#creating the 2 objects for Employee class

emp1 = Employee("Udya",101)

emp2 = Employee("Koti",102)

#calling the display method on 2 of these objects

emp1.display();

emp2.display();

media%2Fc0d%2Fc0da399b-f520-47a0-9395-3a

Add a comment
Know the answer?
Add Answer to:
PlLEASE HELP !! Python II final project. Object Oriented Programming python.Make a program using OOP concepts....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a python program using Object Oriented and do the following: 1. create class "cat" with...

    Write a python program using Object Oriented and do the following: 1. create class "cat" with the following properties: name, age (create constructor method: def __init__) 2. create class "adopter" with the following properties: name, phone 3. create class "transaction" with these properties: adopter, cat (above objects) cat1 = "puffy, 2" adopter1 = "Joe, 123" Test your program: Joe adopts puffy. Print: "Per Transaction 1 <joe> has adopted <puffy>" this can only be done with object oriented programming, no way...

  • using object oriented programming, write a program that will evaluate the oldest vehicle, and the vehicle...

    using object oriented programming, write a program that will evaluate the oldest vehicle, and the vehicle with the most mileage. you can use the get_biggest_number() function for that, then print the following: The oldest car is from { } The highest mileage is { } miles Given: Car_id = [1,2,3,4,50] Car_maker = ["Ford", "Honda", "Dodge", "FIat", "BMW"] Car_year = ["2019", "2017", "2015", "2013", "2011"] Car_mileage = [20000, 30000, 10000, 50000, 80000] if somone could help me out with this, thatd...

  • Project Lists and Object-oriented Programming Note: using c++ This project is an individual assignment that focuses...

    Project Lists and Object-oriented Programming Note: using c++ This project is an individual assignment that focuses on object-oriented programming and lists. The list will be a doubly-linked list and it will be implemented using nodes and pointers. The data contained in the list will be objects from a class. Project data: You will choose one of the following classes to define: Boat, Earthquake, Game, Sport, State, Website, House, Phone, Activist, Plant, Fish, Parrot, and Course. Your class code will include...

  • 3. (a) Outline any four features of Object-Oriented Programming OOP, giving examples in each case. [16...

    3. (a) Outline any four features of Object-Oriented Programming OOP, giving examples in each case. [16 marks]      (b) Consider the following code fragments: If   a = 10; Evaluate the new value of “b” in the following:                (i)   b =   ++ a;               (ii) b = a ++;             What value would a and b store in (i) and (ii) after program execution?                                                                                                            [4 marks] 4. Create a C++ program that makes use of three arrays; name, mark, grade. The program should accept...

  • Purpose: The main goal of this assignment is to practice Object Oriented Programming by creating classes,...

    Purpose: The main goal of this assignment is to practice Object Oriented Programming by creating classes, writing methods, and creating inheritance type relationships. Task: Create a Java project using the IDE Write a program using Object Oriented Programming Plan a program where two classes inherit from a single class and theme it in a way that makes sense. Create a super class with a non-constructor method Create two sub classes with their own non-constructor methods and have them inherit from...

  • What are the differences between the traditional program paradigm (procedural programming) and the newer object oriented...

    What are the differences between the traditional program paradigm (procedural programming) and the newer object oriented paradigm? What are the advantages and disadvantages of each? Which paradigm would you prefer to work with? Explain and give your reasons.

  • Object Oriented Programming using class c++ Program where the users (customers) can add Product name, Product...

    Object Oriented Programming using class c++ Program where the users (customers) can add Product name, Product Price, Product Quantity. Program needs a menu: 1. Add item 2. Get total 3. Display all items

  • Using the various Object Oriented Programming concepts and skills learnt in this course, design and develop...

    Using the various Object Oriented Programming concepts and skills learnt in this course, design and develop a Java Application to compute an individual student’s GPA and store the records in a database. The application should have two components i.e. The student and the course components. The following should be the minimal operations on the course component: – Set course information – Print course information – Show credit hours – Show course number The following should be the minimal operations on...

  • 1) Using the Object-Oriented Programming Paradigm,implement the necessary code in Python creating a ‘Car’ class with...

    1) Using the Object-Oriented Programming Paradigm,implement the necessary code in Python creating a ‘Car’ class with a constructor that stores all the Car information (ID, MAKE, MODEL, YEAR , COLOR, MILEAGE, PRICE_TO_DEALER, SALE_PRICE, PROFIT) as attributes. 2) Implement and add the following methods to the ‘Car' class in Question 1. a) necessary getter methods b) necessary setter methods c) method to display all the information to the screen d) a method to calculate the profit

  • JAVA - Abstraction and Encapsulation are one pillar of OOP (Object Oriented Programming). Another is inheritance...

    JAVA - Abstraction and Encapsulation are one pillar of OOP (Object Oriented Programming). Another is inheritance and polymorphism. In this assignment we will use inheritance and polymorphism to solve a problem. Part (a) of the figure below shows a symbolic representation of an electric circuit called an amplifier. The input to the amplifier is the voltage vi and the output is the voltage vo. The output of an amplifier is proportional to the input. The constant of proportionality is called...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT