Write the appropriate accessor and mutator methods

Assignment Help Computer Engineering
Reference no: EM132112772

Python. Please include comments where needed to explain code and include a screenshot of output. Thank you!

The goal of this project is to give you more experience on the use of:

• classes

• inheritance

• turtle graphics

• files

• lists of lists Project

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.

Reference no: EM132112772

Questions Cloud

Write a program that keeps a dictionary : Write a program that keeps a dictionary in which both keys and values are strings - names of students and their course grades.
Importance of a global mindset to international firms : Explain the meaning and the importance of a Global Mindset to international firms.
Write a program that reads an integer and displays : Write a program that reads an integer and displays all its smallest factors, also known as prime factors.
Why did eastern airlines go bankrupt : Why did Eastern Airlines go bankrupt? What were the organizational issues they faced?
Write the appropriate accessor and mutator methods : Write the appropriate accessor and mutator methods for each class. Write two class es named ProductionWorker and ShiftSupervisor.
Property ownership in cyberspace : 1. What could be possible problems with property ownership in cyberspace?
Create a program for playing tic tac toe : A draw (no winner) occurs when all the cells on the grid have been filled with tokens and neither player has achieved a win.
Write a program that asks for two numbers interactively : Write a program that asks for 2 numbers interactively, when the user input non- number, it will report an error and ask user to input.
Elaborate on the competencies required from pew management : PPMP20009 Leading Lean Projects - Identify the root cause(s) that lead to the problems using appropriate tools and techniques

Reviews

Write a Review

Computer Engineering Questions & Answers

  Designing and developing a simple im system

In this project you will be designing/developing a simple IM system. However, we will leave the precise details of the design up to you (maybe you want to make it state driven, using an Finite State Machine design

  Which may prove useful in helping to increase

For your convenience, I have attached a formatted MS Word file containing information on subject of price discrimination, and conditions under which price discrimination becomes unlawful.

  Explain the term unicast versus multicast

Explain the Unicast versus multicast, Broadcast versus conference, Channel bandwidth and Network partitioning for multicasting communications.

  Express what is a keyword in a programming language

Why explantion of a variable is considered to be an important.

  Provide a formula for the likelihood function

Now provide a formula for the likelihood function and the gradient for a general RMN.

  Describe the meaning of and methods for database recovery

Describe the meaning of and methods for database recovery. What is database performance tuning? Why is transaction management and concurrency control important?

  Explain differences between the various graphic formats

explain differences between the various graphic formats. express some ways to increase your site's search engine ranking.

  Create a flow chart or pseudocode for the given problem

The Drive-Rite Insurance Company provides automobile insurance policies for drivers. Create a flow chart or pseudocode for the given problem.

  Write a user program to access the physical memory

Please write a user program to access the physical memory using /dev/mem. Please note that, addresses you need to use here must be physical addresses.

  Evaluate the heat loss from the fin

We have used linear one-dimensional elements to approximate the temperature distribution along a fin.

  Examine practicality of building multiple interface options

Examine the practicality of building multiple interface options for diverse populations, rather than building one (1) interface that meets the needs.

  Define the steps you have taken for the testing method

Describe in detail your communication plan.define the steps you have taken for the testing method

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd