Design the appropriate accessor and mutator methods

Assignment Help Python Programming
Reference no: EM132360886

Question

Employee Production Worker Program Design an Employee class that has fields for the following pieces of information:

Employee Name
Employee Number

Next, design a class named ProductionWorker that extends the Employee class. The ProductionWorker class should have fields to hold the following information:

Shift Number (an integer, such as 1, 2, or 3)
Hourly Pay Rate

The workday is divided into two shifts: day and night. The shift field will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator methods for each class.

Once you have designed the classes, design a program that creates an object of the ProductionWorker class and prompts the user to enter data for each of the object's fields. Store the data in the object and then use the object's accessor methods to retrieve it and display it on the screen.

You are to submit the following for the assignment:

Submit your JAVA source code that you generated from RAPTOR with comments added to each line or where necessary to explain program flow. Also submit the RAPTOR file (flowchart) of your working program.

Make sure you run it to make sure it is error free and does what it is supposed to.

You can use the generate dropdown to create example JAVA code based on your working logical flow chart to see what the code would look like.

Reference no: EM132360886

Questions Cloud

Main functions of your proposed information system : The CEO's Challenge. Identify the main functions of your proposed information system and why they are important to the business.
Compute the number pi by summing the first n terms : Write a function pisum(n) that receives an integer n as input and computes the number Pi by summing the first n terms of the following exponential sum.
What factors are important to ongoing team dynamics : What factors are important to ongoing team dynamics? Describe guidelines to evaluate the function and productivity of teams.
Strategies would you try to if you were in todd situation : What strategies would you try to if you were in Todd's situation.
Design the appropriate accessor and mutator methods : he day shift is shift 1 and the night shift is shift 2. Design the appropriate accessor and mutator methods for each class.
How the role will impact patient outcomes : The elevator door opens; you step on and find yourself face to face with a known skeptical colleague, who inquires "what are you doing in your profession"?
Design a program that creates an object of the class : Design a program that creates an object of the class and prompts the user to enter the name, type, and age of his pet.
What pain scale are you using : It is 10 pm and you make assessment rounds and find Bobby crying. You ask him what his pain level is. What pain scale are you using?
Classify each threat on a probability-impact matrix : MIS761 – Enterprise Information Management and Security - Deakin University - design of payment systems is outside the scope of this project

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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