LTE . The classes Name and Date are separate classes used as properties in the Employee class. 9:59 Class Employee is the superclass of the classes SalariedEmployee and HourlyEmployee The superclass has the
Q: Tell me about the difficulties you've encountered when using Business Intelligence.
A: Business Intelligence: BI analyses business data such software, domains, technologies, etc. To…
Q: The size of the intersection divided by the size of the union is used to determine how similar two…
A: Let's start with a brute force approach as this problem looks fairly challenging. It will at the…
Q: Why are wiretapping and network sniffing seen as a passive threat yet they share many similarities?
A: Wiretapping refers to the unauthorized interception or recording of private or confidential…
Q: Write a program that lists all ways people can line up for a photo (all permutations of a list of…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: Create a function named min that accepts an integer array and its size and returns the smallest…
A: Please refer to the following steps for the complete solution to the problem above.
Q: Why would you choose to utilize a Web Service rather than a more conventional application?
A: Protection of your data:web applications offer a good way to securely access centralized data.
Q: How many mistakes in a message may be detected by using a parity bit?
A: According to the information given:- We have to describe number of mistakes in a message may be…
Q: Given how often these two key components change, it is practically impossible to maintain top…
A: Any programming language requires the usage of different variables to store data when programming.…
Q: When developing multipurpose software, why should you stay away from assembly language? When might…
A: Introduction Multipurpose Software: Multipurpose software is a type of software that can perform…
Q: Avalanches: what are they? a block cypher with an avalanche effect? Be particular
A: In cryptography, an avalanche effect is a desirable property of block ciphers, where a small change…
Q: Create a Java program to output information for two payees including the following information about…
A: Introduction Classes in Java are the basic building blocks of code and are used to define objects…
Q: How do Boolean expressions work? What are they used for?
A: What does a Boolean expression actually mean? A logical assertion that can only be TRUE or FALSE is…
Q: A web server is a specific sort of computer that is used to deliver material from the internet.
A: A web server is a software program that runs on a computer and is designed to serve web pages to…
Q: For the following exercises, give a regular expression that represents that described set. 2. The…
A: Introduction: A regular expression (regex) is a character sequence that defines a search pattern.…
Q: diagrams depicting the software development process
A: 1. Programming is the process of creating a set of instructions that tells a computer how to perform…
Q: Which kind of parallelism in a program, data or control, is optimal for SIMD implementation? Can you…
A: Introduction : SIMD stands for Single Instruction, Multiple Data. It is a type of parallel computing…
Q: Describe your reasoning for selecting time-sharing processing versus batch processing.
A: Process time-sharing When jobs are assigned a certain amount of time and the operating system…
Q: Think about the importance of wireless networks in today's emerging countries. In many places,…
A: Introduction: WLANs provide a LAN in a confined space, such as a home, school, computer lab, campus,…
Q: Write an essay outlining the distinctions between wide-area and local-area networks, focusing on…
A: A collection of computers and related peripherals in a constrained space, such as a classroom, lab,…
Q: When it comes to debugging, using print statements or manual walkthroughs both have their own set of…
A: About: What Is RST Debugging, exactly?A developer will instrument their application with "print"…
Q: What exactly do you mean when you talk about "web pages"?
A: Web pages are a kind of hypertext document (a collection of text, images, audio, and video, among…
Q: Describe ebool format.
A: An eBook is a reflowable and non editable book which is converted into the digital format and this…
Q: Can you explain what a boolean expression is?
A: Introduction: In computer languages, a Boolean expression is a kind of expression. When this…
Q: What exactly is the purpose of the term "debugging"?
A: Introduction: Finding and fixing weaknesses in software code, sometimes referred to as "bugs," that…
Q: For instance, wireless networks are crucial in today's developing countries. Wireless technology has…
A: Wireless technology has mostly superseded wired local area networks (LANs) and cables. Drawbacks to…
Q: Give a practical example of data manipulation, forgery, and online jacking to illustrate your point.
A: INTRODUCTION: The protection of computer systems and the information they contain against damage,…
Q: Five software development projects are under your direction. The project's qualities are as follows:…
A: The model or strategy to use for a project would depend on the specific requirements and constraints…
Q: Defining the impact of setting your system's default runlevel/target to runlevel 6 or rebooting.…
A: Rebooting:- Rebooting is the process of restarting a computer or device. It is usually done to fix…
Q: ow does a Type 1 hypervisor vary from a Type 2 one?
A: A Type 1 hypervisor, also known as a bare-metal hypervisor, runs directly on the host's physical…
Q: Consider a relation (p, q, r, s, t, u, v) with functional dependencies as given below: p➜q r➜s,t…
A: A candidate key is a set of attributes in a relation that uniquely identifies a tuple in the…
Q: Find and replace all instances of the text "Salaries" with Salary. (Hint: You should find and…
A: The formula for find and replace in MS Excel is: Go to Home or Press Ctrl+H > Find & Select…
Q: What distinguishes conceptual data modeling, relational data modeling, and relational data modeling?
A: Introduction Relational data modeling and conceptual data modeling are two distinct methodologies…
Q: What is data modeling such an essential tool?
A: Data modelling is an essential tool for organizations to accelerate their application development…
Q: The similarity of two documents (each with distinct words) is defined to be the size of the…
A: To solve this problem, we can use a hash table (dictionary) to store the documents, where the key is…
Q: Differenciate between Sistema y Sistemas Embedidos Let's have a look. Can Embedded applications be…
A: The Spanish term for "system" is sistema. The term "Embedded Systems" refers to computer systems…
Q: In what ways are RAM useful? Create a list containing just two groups. Is flash memory used for the…
A: RAM (Random Access Memory) is useful in a number of ways, including: Speed: RAM is much faster…
Q: Consider the following generalization of the maximum matching problem, which we call…
A: Answer: The proof that Strict-Matching is NP-complete is shown through a reduction from the…
Q: Python code to calculate the eigenvalues and eigenvectors of a matrix from the numpy linalg library…
A: Introduction Numpy is a Python library that provides support for large, multidimensional array and…
Q: All these topics are related to cyber security so give me 1. long introduction of personal security…
A: Introduction Cyber security: Protecting networks, systems, and software from online dangers is the…
Q: 1. Company X is conducting a survey on their redesigned spinning drives. They need to compare the…
A: 1a. The average booting time using spinning drive is 37.5 seconds. b. The histogram for booting…
Q: How can Microsoft Office be utilized to boost workplace effectiveness and productivity?
A: The following are some of the numerous ways in which the efficiency and productivity of the…
Q: erred to as debug
A: Introduction: Debugging is the process of identifying and fixing bugs (defects or issues that…
Q: x86 Assembly Language Programming What will be the final value in EDX after this code executes? mov…
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: In your experience as a manager, what have you come to expect? Tell me about the attractive and…
A: The following qualifications are necessary for a management position: • You need to have the ability…
Q: Consider the following recursive function GUESS(n, m) written in pseudocode. Hand trace the code to…
A: I have converted the above pseudocode into c++ code. I have provided C++ CODE along with CODE…
Q: odels of machine learning are taught using datasets that are rich in features (or attributes). On…
A: The "utility" of a feature in a machine learning model refers to its relevance and importance in…
Q: Briefly define the following crimes
A: Briefly define the following crimes in your own words. No need for further explanation, just define…
Q: Is there anything else besides a PKI-based solution that provides key recovery that someone like…
A: Given: To prevent Peter from forgetting his password, are there any tools that he or someone else…
Q: Take a look around Ford's exterior and inside. opportunities and threats, and Ford's internal and…
A: The SWOT analysis of a project evaluates its strengths, weaknesses, opportunities, and threats. It…
Q: Can today's automated systems, such as Mechanical Turk, be fooled? What would set today's Turks…
A: using an automated to dupe people: "No," you cannot deceive people using a method like Mechanical…
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Step by step
Solved in 2 steps
- 7. When a class contains objects of another class, the relationship is called a whole-part relationship or composition. The relationship created is also called a has-a relationship. Discuss some of the possible issues with composition, such as the long statement: Outputsales.getHighestPaidEmployee().getHireDate().getYear().Polymorphism Create a class hierarchy that represents different types of employees in a company. Start with a class called Employee that has two methods: calculateSalary() and displayDetails(). Then, create two subclasses of Employee: Manager and Engineer. Override the calculateSalary() method in both subclasses to calculate the salary based on their job role and experience. Override the displayDetails() method in both subclasses to print out a message indicating the details of the employee. Next, create another class called Salesperson that extends Employee and has a method called calculateCommission(). Create two subclasses of Salesperson: SeniorSalesperson and JuniorSalesperson. Override the calculateCommission() method in both subclasses to calculate the commission based on their sales performance. Override the displayDetails() method in both subclasses to print out a message indicating the details of the salesperson. In the main method, create objects of each class and call their…The classes Name and Date are separate classes used as properties in the Employee class. Class Employee is the superclass of the classes SalariedEmployee and HourlyEmployee. The superclass has the attributes name and data of hire and methods to set and get these attributes. It also has 2 abstract methods equals() which check if the objects are same and toString() which convert the properties to a printable string. Also the method read() which used as an input method. The SalariedEmployee subclass has in addition to the attributes of the super-class the attribute annualSalary and set and get methods for it. This class also defines the read() method and grossPay() which in this case returns the salary of the employee. The HourlyEmployee subclass has in addition to the attributes of the super-class, the hoursWorked and hourlyRate attributes. It provides ‘get’ and ‘set’ methods for these attributes. Also it provides the methods equals() and toString(). Finally, it provides an…
- A whole-part connection or composition occurs when a class contains objects of another class. The result is a has-a relationship. Consider the long statement: Outputsales.getHighestPaidEmployee(). getHireDate(). getYear().c# programMake a class called Employees, with attributes Name, Gender, Experience, Salary and ID.Make a delegate called EligiblePromo. This delegate takes an employees object as a parameter and returns a boolean value indication whether or not the employee should be promoted.Make a PromoteEmployee() method that takes an arraylist of Employees and delegate of type EligiblePromo as parametersNB: PromoteEmployee() methos loops through each Employees object and passes it to the delegate(25)1- Create a class SchoolKid that is the base class for children ar aschool . It should have attributes of the child’s name and age ,the name of the child’s teacher ,and the greeting. It should haveappropriate accessor and mutator methods for each of the attributes. Derive a class ExaggeratingKid from schoolkid , as described above . The new class should override the accessor method for the age , reporting the actual plus 2. It also should override the accessor for the greeting ,returning the child’s greeting concatenated with the words “I am the best”
- public class date { private int day; // from 1 to 31 private int month; // from 1 to 12 private int year; // from 2000 upwards public void advance (); // move to next day }; Implement a constructor that initializes new objects of date class to be set to the 1st of January 2000. Implement setters for day, month, and year. Implement the advance method, which moves to the next day, ensuring that all data members are updated appropriately.Create abstract class Pet , which is the abstract superclass of all animals. Declare a integer attribute called legs, which records the number of legs for this animal. Define a constructor that initializes the legs attribute. Declare an abstract method eat. Declare a concrete method walk that prints out something about how the animals walks (include the number of legs). Create the Dog class. The Dog class extends the Pet class. This class must include a String attribute to store the name and food of the pet Define a default constructor that calls the superclass constructor to specify that all dogs have 4 legs and name. override the eat and walk method. Create the Cat class that extends Pet. This class must include a String attribute to store the name of the pet, and a string to save food . Define a constructor that takes one String parameter that specifies the cat's name and food. This constructor must also call the superclass constructor to specify that all cats have four legs.…Create abstract class Pet , which is the abstract superclass of all animals. Declare a integer attribute called legs, which records the number of legs for this animal. Define a constructor that initializes the legs attribute. Declare an abstract method eat. Declare a concrete method walk that prints out something about how the animals walks (include the number of legs). Create the Dog class. The Dog class extends the Pet class. This class must include a String attribute to store the name and food of the pet Define a default constructor that calls the superclass constructor to specify that all dogs have 4 legs and name. override the eat and walk method. Create the Cat class that extends Pet. This class must include a String attribute to store the name of the pet, and a string to save food . Define a constructor that takes one String parameter that specifies the cat's name and food. This constructor must also call the superclass constructor to specify that all cats have four legs.…
- Create abstract class Pet , which is the abstract superclass of all animals.Declare a integer attribute called legs, which records the number of legs for this animal.Define a constructor that initializes the legs attribute.Declare an abstract method eat.Declare a concrete method walk that prints out something about how the animals walks (include the number of legs).Create the Dog class.The Dog class extends the Pet class.This class must include a String attribute to store the name and food of the petDefine a default constructor that calls the superclass constructor to specify that all dogs have 4 legs and name.override the eat and walk method.Create the Cat class that extends Pet.This class must include a String attribute to store the name of the pet, and a string to save food .Define a constructor that takes one String parameter that specifies the cat's name and food. This constructor must also call the superclass constructor to specify that all cats have four legs.Override walk…Create a class Animal and Add a protected data member named id of integer type. Add get/set methods for id data member in Animal class with public access. Also provide default constructor this should initialize id to 0. Also provide parameterized constructor and toString method. Add an abstract method tellAboutSelf method to Animal class with public access Add another abstract method speak method to Animal class. Reptile, Bird, Mammal Next create the three child classes which extends form Animal class. Add a default constructor to each of the above created class. The constructor should initialize the id data member id, Reptile, Bird and Mammal, to 1, 2 and 3 respectively also it display a message “(class Name)’s default constructor”. E.g. for Bird it says “Bird’s default constructor”. Add a parameterized constructor to each of the above created class. The constructor should initialize the id data member, Reptile, Bird and Mammal, to the specified id passed to the constructor also it…Write a class LocalPhone that contains an attribute phone to store a local telephonenumber. The class contains member functions to input and display phone number.Write a child class NatPhone for national phone numbers that inherits LocPhoneclass. It additionally contains an attribute to store city code. It also containsmember functions to input and show the city code. Write another class IntPhonefor international phone numbers that inherit NatPhone class. It additionallycontains an attribute to store country code. It also contains member functions toinput and show the country code. Test these classes from main() by creatingobjects of derived classes and testing functions in a way that clear concept ofmulti-level Inheritance.