Please write in Python with comments 2. ShiftSupervisor Class In a particular factory, a shift supervisor is a salaried employee who supervises a shift. In addition to a salary, the shift supervisor earns a yearly bonus when his or her shift meets production goals. Write a ShiftSupervisor class that is a subclass of the Employee class you created in Programming Exercise 1. The ShiftSupervisor class should keep a data attribute for the annual salary, and a data attribute for the annual production bonus that a shift supervisor has earned. Demonstrate the class by writing a program that uses a ShiftSupervisor object.
Q: 1. A (Bv C) 2. (~B^~C) D 3. DDA 4 (A=D) XI. X 5. A (~B^~C) 6. ADD 7. (AD) ^ (DA) (1)- O. - HS 8:8…
A: All these arguments are from discrete mathematics. So using the recurrence rule we complete these…
Q: You borrow $500 and agree to repay $600 in two weeks, after two weeks the interest is 10% per week.…
A:
Q: Write the result/output of the following python program. A=8 B=2 A+ B B**=2 A%=B C=A+B…
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If…
Q: 3. Construct npda's that accept the following regular languages: (b) L2= L (aab* aba*).
A: Introduction: Push-down automata are finite automata with additional memory (stack) (PDA). A PDA…
Q: The new VP of Business Development is a very ambitious lady. She wants to store a photograph of…
A: If images have to be stored on their own servers, we can use CDN (content delivery network ) where…
Q: Document databases store documents using Key/Value pair in _____ format with many levels of nesting.…
A: Introduction Document Database: A non-relational database called a document database is made to…
Q: Can you convert a LONG to LOB? If so, provide the syntax for doing so.
A: We need to discuss the conversion of LONG to LOB.
Q: The Megawatt Solar Panel Company installs solar panels on home rooftops. The base installation…
A: SOLUTION- I have solved this problem in VISUAL BASIC code with comments and screenshot for easy…
Q: 4. Describe the five basic SCM components in reference to Walmart's business model.
A: Answer:
Q: A Greedy Dynamic Program: The Weighted Job/Event Scheduling Problem
A: Start Time final time and the jobs time is required When we start executing a algorithm or a problem…
Q: It is desired to read a word from a text file. Consider the code snippet: char word[20]; FILE…
A: Solution: Given, It is desired to read a word from a text file. Consider the code snippet:char…
Q: Write a static method in Java that takes an integer as an input parameter and returns the count of…
A: The JAVA code is given below with output screenshot
Q: Question 19 Consider two different machines with two different instruction sets, both of which have…
A: An instruction set which it is the code that the computer processor (CPU) can understand. The…
Q: Acceptance testing is normally done by O Developer Tester OSQA member Customer Jy
A: Answer: We have explain about Acceptance testing normally done by the which one . for more details…
Q: Which of the following is not part of the basic components of a data warehouse? 1. data sources 2.…
A: A relational database is typically used as the data warehouse. It should be structured to allow for…
Q: F. What are different activities of Architecture activities, define abst architecture.
A: The process of design include giving a thing its appearance and making sure it serves its intended…
Q: 3 Let N be the number of values in a max heap. How would you describe the Big-O of extracting all…
A: Heap sort is a comparison-based sorting technique based on Binary Heap data structure. It is similar…
Q: Question 16 A program consists of 100,000 instructions as follows: Instruction Type Integer…
A: 16)ans Since CPI => Cycles per instruction I => integer count Given Total no of instructions =…
Q: VGA mode is used for the purpose of displaying visual information on a screen. Where do you get your…
A: VGA mode is utilised for the purpose of displaying visual output on a monitor. The very common type…
Q: Find context-free grammars for the following languages (with n ≥ 0, m≥ 0, k > 0): (a) I-{ata (b) L=…
A: “Since you have posted a question with multiple sub parts, we will provide the solution only to the…
Q: Write a program that reads a loan amount, payment amount, and interest rate as inputs and outputs…
A: Algorithm: 1. Start 2. Get loan, payment, and interest rate inputs from the user. 3. Initialize…
Q: Question # 4: Use the Vigenere Cipher method to encrypt the following “PLEASE SEE ME TOMORROW”. Key…
A: Answer: We have explain in details how to use Vigenere Cipher method to encrypt the following so we…
Q: hat are the components of two-factor authentication? Provide examples to support your answer.
A: Introduction: Multi-factor authentication, sometimes referred to as two-factor authentication or…
Q: 4. Suppose we have the following data from n patients: Patient 1 Patient 2 Patient 3 Age Weight…
A: Python which refers to the one it is a high-level, general-purpose programming language. Its design…
Q: A Network Security Design is necessary to strengthen protection and security since servers on a flat…
A: Introduction: Demilitarized zones (DMZs) separate secure business networks. These subnetworks…
Q: Consider the following relations in a Hotel database. Hotel (HotelNo, HotelName, Address, Capacity)…
A: Here is the explanation regarding the given database:
Q: Question 16 kir In an assignment statement, to the right of the assignment operator you will…
A: Introduction: The right-hand operand's value is assigned to the variable, property, or indexer…
Q: Represent the expressions a) (x + xy) + (x/y) and x + ((xy + x)y) using binary trees. Write these…
A: Prefix: A prefix is a group of letters added to the beginning of a word. It changes the meaning of…
Q: 0 Question 5 Memory is leaked by the following code. int x = new int; int** y- &x; delete x; x= new…
A: memory leak occurs when new memory is dynamically allocated and never freed.
Q: You need to store a string Canton in a computer storage device. If it is stored as a piece of…
A: Dear Student, The answer to your question is given below -
Q: R is (A, B, C, D, E, F, G) with FD's {A-BC, BC- DE, CF→G} 5.a. Calculate (AB)* 5.b. 5.c. Calculate…
A: Answer: We need to write the closure of the given key and also we will see what will be the…
Q: Machine Learning Evaluation measures. Consider a dataset with 90 negative examples and 10 positive…
A: Your answer is given below with solution. Given A dataset with 90 negative examples and 10…
Q: create logic design using pseudocode to clean your study table . 2 conditional statememt and 1 loop
A: As the programming language is not mentioned here, we are using PYTHON The Python code is given…
Q: When it comes to protecting a network, what function does a firewall do above all others? How should…
A: Answer A firewall is a network security device that monitors incoming and outgoing networks traffic…
Q: Configurations for the operating system and applications are stored in what type of files? Text…
A: Configurations for the operating system and applications are stored in what type of files? Answer:…
Q: Use a while loop to repeatedly take input from the user and print whatever they type in. When the…
A: Introduction While Loop: The while loop in Python is used to execute a piece of code until a…
Q: 7. Starting with the following tree, draw the tree that results from performing a removeMin…
A: Given heap: [1,12,3,17,65,34,32,87,45] //given tree is represented using array if parent at ith…
Q: A Greedy Dynamic Program: The Weighted Job/Event Scheduling Problem
A: Greedy Dynamic Programming: First sort the events in increasing order of their finishing times fi (a…
Q: Give some specific instances in which Dirty and Phantom both acted inappropriately.
A: Introduction: A dirty read happens when a transaction is granted permission to access data from a…
Q: Which of the following interactions is/are synchronous? Why? A. Remote Control and Television set…
A: Dear Student, The answer to your question is given below -
Q: WAP program creates a BitArray of five Byte values (1,2,3,4,5) and displays each byte in its proper…
A: program creates a BitArray of five Byte values (1,2,3,4,5) and displays each byte in its proper…
Q: Create a new SCRIPT file called additup.m, inside this file, a) Use a for loop to sum the elements…
A: A scripting language is a programming language that helps to automate the task. The script language…
Q: Characters Decimal Binary C O d i n
A: Here in this question we have given some English character and we have asked to convert them in…
Q: Which of the following lines of Haskell code is a correct call to a function with the type signature…
A: Dear Student, The answer to your question is given below -
Q: In Python with comments please Celsius to Fahrenheit Write a GUI program that converts Celsius…
A: Here is a simple program that converts Celsius temperatures to Fahrenheit temperatures using a…
Q: Consider a 2d Convolutional Layer defined below. Given a 20x20 sized input image, this outputs 5…
A: Here is the explanation regarding the value of x.
Q: Design a CFG for language L and show how that CFG can be used to derive the string s: L =…
A: Given that:
Q: It's possible to tell scalar computers apart from superscale computers by comparing and contrasting…
A: Scalar processors process one piece of data concurrently. A vector processor processes many bits…
Q: Prove by an appropriate reduction that the following set is not recursively enumerable: {⟨M⟩|M(⟨M⟩)…
A: The Turing machine is a mathematical model that manipulates the abstract machine and computing…
Q: Which option is a possible representation of this paragraph to first order logic? "None of my…
A: Here in this question we have given a sentence and we have asked to convert it into first order…
Please write in Python with comments
2. ShiftSupervisor Class
In a particular factory, a shift supervisor is a salaried employee who supervises a shift. In addition to a salary, the shift supervisor earns a yearly bonus when his or her shift meets production goals. Write a ShiftSupervisor class that is a subclass of the Employee class you created in
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Programming Language = Python 1. Employee and ProductionWorker Classes Write an Employee class that keeps data attributes for the following pieces of information: • Employee name • Employee number Next, write a class named ProductionWorker that is a subclass of the Employee class. The ProductionWorker class should keep data attributes for 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 attribute 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. Write the appropriate accessor and mutator methods for each class. Once you have written the classes, write a program that creates an object of the ProductionWorker 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…Programming Launguage = Python 2. ShiftSupervisor Class In a particular factory, a shift supervisor is a salaried employee who supervises a shift. In addition to a salary, the shift supervisor earns a yearly bonus when his or her shift meets production goals. Write a ShiftSupervisor class that is a subclass of the Employee class you created in Programming Exercise 1. The ShiftSupervisor class should keep a data attribute for the annual salary and a data attribute for the annual production bonus that a shift supervisor has earned. Demonstrate the class by writing a program that uses a ShiftSupervisor object. Sample Output Enter the name: John Smith Enter the ID number: 234 Enter the annual salary: 100000 Enter the bonus: 10000 Shift supervisor worker information: Name: John Smith ID number: 234 Annual Salary: $100,000.00 Annual Production Bonus: $10,000.00 Combined Annual Pay: $110,000.00 NOTE: Add new calculation.User-defined Class: You will design and implement your own data class. The class will store data that has been read as user input from the keyboard (see Getting Input below), and provide necessary operations. As the data stored relates to monetary change, the class should be named MoneyChange. The class requires at least 2 instance variables for the name of a person and the coin change amount to be given to that person. You may also wish to use 6 instance variables to represent amounts for each of the 6 coin denominations (see Client Class below). There should be no need for more than these instance variables. However, if you wish to use more instance variables, you must provide a legitimate justification for their usage in the internal and external documentation.Your class will need to have at least a default constructor, and a constructor with two parameters:one parameter being a name and the other a coin amount. Your class should also provide appropriate get and set methods for…
- Python Programming 3. Write an Employee class that keeps data attributes for the following pieces of information:(a). Employee name(b). Employee numberNext, write a class named ProductionWorker that is a subclass of the Employee class. The ProductionWorker class should keep data attributes for the following information:(c). Shift number (an integer,such as1 for morning shift, 2 for evening shift)(d). Hourly payrateWrite the appropriate accessor and mutator methods for each class.PROGRAMMING LANGUAGE: C++ Write a program that has a base class named FlightCrew. This class shouldhave three data members: an integer to store the ID of the crew member, aninteger to store the number of years of service and another integer to storethe total salary of the member. Provide a parameterized constructor in theclass to set the values of the data members.Derive a class Pilot from FlightCrew to contain two additional data members,an integer to store the number of hours of flight and a boolean to storewhether the Pilot has military experience or not. Provide a paramete rizedconstructor in the Pilot class. Provide a function bonus() in the class wherethe bonus of a pilot is his number of flight hours times the 10% of his salary.Likewise, provide a function isEligible() in the class to find out if the pilot iseligible for promotion or not. A pilot is eligible for promotion to the nextrank if he has at least 5 years of experience and the number of total flighthours is greater…3. Person and Customer Classes The Person and Customer Classes Write a class named Person with data attributes for a person’s name, address, and telephone number. Next, write a class named Customer that is a subclass of the Person class. The Customer class should have a data attribute for a customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Demonstrate an instance of the Customer class in a simple program.
- In Python Programming Language : Design an Employee class that has fields for the following pieces of information : Employee name Employee number Design a class named ProductionWorker that extends the employee class. The production worker class should have fields to hold the following information: Shift number (an integer such as 1,2,3) Hourly pay rate The workday is divided into 2 shifts day and night. The shift will hold an integer value that the 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 getter methods for each class. Once you have designed the classes, design a program that creates an object of the production worker class and prompts the user to enter data for each 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.Python Programming2. Write a class named Pet, which should have the following data attributes:(a). __name (for the name of a pet)__animal_type (for the type of animal that a pet is. Example values are ‘Dog’, ‘Cat’, and ‘Bird’)__age (for the pet’s age)The Pet class should have an __init__ method that creates these attributes. It should also have the following methods:(b). set_name: This method assigns a value to the __name field.set_animal_type: This method assigns a value to the __animal_type field.set_age: This method assigns a value to the __age field.get_name: This method returns the value of the __name field.get_animal_type: This method returns the value of the __animal_type field.get_age: This method returns the value of the __age field.ShiftSupervisor Class In a particular factory, a shift supervisor is a salaried employee who supervises a shift. In addition to a salary, the shift supervisor earns a yearly bonus when his or her shift meets production goals. Design a ShiftSupervisor class that extends the Employee class you created in Problem 1, The ShiftSupervisor class should have a field that holds the annual salary and a field that holds the annual production bonus that a shift supervisor has earned. Write one or more constructors and the appropriate accessor and mutator methods for the class. Demonstrate the class by writing a program that uses a ShiftSupervisor object. beginner code because this is an intro to java class.
- Write a program to create a class teacher with the following data members.ID: Can be accessed only from the teacher class and derived classes of the teacher.Age: Can be accessed from all the classes and packages in the application.Phone Number: Can be accessed only from the classes inside the same package.Write the constructor function. Derive a class Math_teacher from the teacher class, add the following two data members in the Math_teacher class.Room Number: This can be accessed by all the classes in the application.Course_ID: This can be accessed by all the classes in the same package.Write the constructor function.Using C# Language: Programming PLO 3 Measured: Create control structures, methods with the appropriate parameters, and data structures of the appropriate type, and implement algorithms to solve problems. Design a class named Contractor. The class should keep the following information: Contractor name Contractor number Contractor start date Write one or more constructors and the appropriate accessor and mutator functions for the class. Write another class named Subcontractor that is derived from the Contractor class. The Subcontractor class should have member variables to hold the following information: Shift (an integer) Hourly pay rate (a double) The work is divided between two shifts, a day shift, and a night shift. The shift variable will hold an integer value representing the shift that the subcontractor will work. The day shift is 1 and the night shift is 2. Write one or more constructors and the appropriate accessor functions for the class. Demonstrate the classes…Person and Customer Classes Write a class named (Person) with data attributes for a person’s name, address, and telephone number. Provide accessors/getters and mutators/setters for each attribute. Write a displayPerson() to print out the attributes of the Person. Next, write a class named (Customer) that is a subclass of the (Person) class. The (Customer) class should have a data attribute for a customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Provide accessors/getters and mutators/setters for each attribute. Write a display customer() to print out the attributes of the Customer. Demonstrate an instance of the (Customer) class in a simple program.