Reference no: EM132112832
Python. Please include comments where needed to explain code and include a screenshot of output. T
Problem 1: Employee
Write an Employee class that keeps data attributes for the following pieces of information:
• Employee name
• Employee number
Next, write two class es named ProductionWorker and ShiftSupervisor that are subclass es of the Employee class. ProductionWorker Class The P roductionWorker class should keep data attributes for the following information:
• Shift number (an integer, such as 1, 2, or 3)
• Hourly pay rate
Shift attribute will hold an integer value representing the shift that the employee w orks. The day shift is shift 1 and the night shift is shift 2.
ShiftSupervisor Class
In a particular factory, a shift supervisor is a salaried empl oyee who supervises a shift. In addition to a salary, the shift supervisor earns a yearly bo nus when his or her shift meets production goals. The ShiftSupervisor class should keep a data attribute for the :
• Annual salary
• Annual production bonus that a shift supervisor has earned.
Write the appropriate accessor and mutator methods for each class.
Once you have written the classes, write a progra m that creates two objects, object of the ProductionWorker class and an object of ShiftSupervisor r class , and prompts the user to enter data for each of the object' s data attributes. Store the data in the object and then use the object' s accessor methods to retrieve it and display it on the screen.
Application of systems theory in business organizations
: Talk about what is Theory and how it is important to understand for grad students. And how we can apply it for the business.
|
Understanding of buyer behaviour concepts
: BBMK402: Consumer Behaviour - Discuss how Groups & Social Media, Social Class & Lifestyles, Culture and Subcultures impact the buyer behaviour of potential
|
Price ceiling on real estate agency commission
: If a price ceiling on real estate agency commission is limited at 1% only, what will be the impact on new market equilibrium price and quantity of residential
|
What are files and what are the benefits of using files
: Write a Python program that reads a text file 'sentence.txt' containing four lines of text and prints those lines.
|
Write the appropriate accessor and mutator methods for each
: Write two class es named ProductionWorker and ShiftSupervisor that are subclass es of the Employee class.|
|
Determining the opportunity cost
: The required rate of return, or the opportunity cost, is 8.5%, and the expected constant growth rate is g = 6.4%. What is the stock's current price?
|
How many people will be there in a at time
: At time t=0, there are 100 people in A and 200 people in B. How many people will be there in A at time t=2?
|
Price elasticity of demand for dishwashing liquid
: Calculate the point price elasticity of demand for Dishwashing Liquid.
|
Calculate the equilibrium buyers and sellers price
: Assume: S(P-) = 50 + P, D(P+) = 370 - 3P , Sales tax of 20%. Calculate the equilibrium buyers' and sellers' price with no sales tax, and then with the 20% tax
|