game racters using the concept of inheritance. Complete the program class Person { public: ( string profession; int age; Person (): profession("unemployed"), age(16) { } void display () { cout << "My profession is: " << profession << endl; cout << "My age is: " << age << endl; walk(); talk(); void walk() { cout << "I can walk." << endl; } COU void talk() { cout << "I can talk." << endl; } }; class Maths Teacher }; class Footballer
Q: What sets computer science apart from other academic disciplines? What exactly is going on here?
A: Introduction: The study of computer science focuses on the programs and computer systems that are…
Q: William Tucker is a well-known and currently he is cooking a big pizza in rectangle shape having…
A: CODE:
Q: Is it feasible to create a single protocol that addresses every issue that arises during data…
A: Answer: Yes, there's a chance in a closed system. With the caveat that every single completely…
Q: Complete the program class Person { public: string profession; int age; Person ():…
A: CODE:
Q: Examine how people react to computer and mobile app difficulties you've seen them face. Investigate…
A: Introduction: Situations in which people respond to software problems: When software is not updated,…
Q: When encrypting the whole disc, what role does a trusted platform module (TPM), which is also known…
A: The question has been answered in step2
Q: What are some of the difficulties and issues associated with connecting devices to the Internet of…
A: Let's see the solution in the next steps
Q: The development of personal computers and the World Wide Web, for example, has had a significant…
A: Introduction: Usability allows the user to define a system's efficacy, efficiency, and satisfaction…
Q: It's called refresh rate because it defines the useful section of a monitor's display.
A: The question has been answered in step2
Q: Given the 1101011011 data frame and generator polynomial G(x)=x^4+x+1. Derive the transmitted frame.
A: Polynomial generator: Polynomial generator is used in CRC. Polynomial generator is available on both…
Q: In what particular ways may health informatics experts contribute to the standardisation of…
A: Introduction: Technology. A primary objective of health informatics is to develop methods for…
Q: Give an example of how a challenge and response system works. Why is it more secure than a…
A: Challenge-response authentication mechanism (CRAM) is the most commonly used method for…
Q: What are the benefits of operating systems that are not tied to a particular device??
A: operating system An operating system is a program that, subsequent to being at first stacked into…
Q: How does one go about setting up a communications system?
A: Definition: Through communications links, two or more nodes may communicate with one another and…
Q: Computer science: An accurate definition of a project
A: Introduction: In a computer science project, information processes or programs are developed using…
Q: When a software, such as Microsoft Word, chooses to write to a file, briefly explain the transitions…
A: Introduction: Describe briefly the transitions between user and kernel mode that occur when a…
Q: ?[Q5]??
A: In Q5
Q: What sorts of issues are most suited to dynamic programming, and why? Give instances or facts to…
A: Given: Why do we choose to use dynamic programming, and under what circumstances might it be more…
Q: How the school bus monitoring initiative will be impacted by legal issues
A: If you're driving near a school bus or in a school zone, slow down, pay attention to the road, and…
Q: These concepts, "rectification" vs. "repudiation," should be explained.
A: Rectification:The word "rectification" generally refers to the action of making something right; in…
Q: SumDouble.java 1 /** 2 3 4 5 "/ 6 public class SumDouble 7 { 8 9 10 BHABHEKASSEN222222 11 12 13 14…
A: CODE:Java Program import java.util.*;public class SumDouble{public int sumDouble(int a,int b){int…
Q: Convert below postfix expression to prefix expression using stack xyz++a-
A: The question is to convert the given postfix expression to prefix expression using stack. The…
Q: The solutions provided didn't work for any of the questions. Please provide different…
A: TASK 10 - SELECT FROM information_schema.tables WHERE table_schema = 'information_schema' AND…
Q: fermat's theorm states, if p is prime & a is a positive integer not divisible by p then-------- and…
A: Answer: We have explain in more details
Q: Provide a schematic and input string for each version of a Turing machine.
A: Turing machine variations include:Two-Way Infinite Tape Turing Machine: Two-way infinite tape of…
Q: What does data warehousing's "Hybrid Approach" entail? Computer science
A: Solution: The hybrid approach to data warehousing suggests spending around two weeks creating an…
Q: To what extent may regions and availability zones be utilised to enhance the resilience and…
A: This article explores the usage of regions and availability zones to enhance the performance,…
Q: 9.15 REQUIRED LAB 9C: Output values below an amount Write a program that first gets a list of…
A: Code: # user input as a stringdata=input('Data list : ') # split integer values to store in…
Q: What do you believe a corporation with a "hot site" offshore arrangement should have?
A: Introduction: A hot site is a component of a commercial disaster recovery solution that assures that…
Q: Are we better at web design and development as a result of our experiences?
A: Web development: To discuss the creation and growth of websites.Web design refers to the process of…
Q: What can be done to reduce the risk of identity theft?
A: ANSWER IS GIVEN BELOW:
Q: Ques-1 explain The Bagging algorithm and it's steps to perform it. I
A: The ensemble learning technique known as bagging, often referred to as bootstrap aggregation, is…
Q: The value of the variable A at the end of the loop is 1. int A =7; while (A>= 3) A -= 2; Select one:…
A: Give program is, int A=7; while (A>=3) A -= 2; Here the variable A is initialised to 7 and the…
Q: What is a cassette drive, a common tape recorder used to store or load computer information?
A: Cassette drive: For backup and archiving reasons, a tape drive is a device that saves computer data…
Q: What is Cook's Theorem Explain it?
A: Cook's theorem: The Boolean satisfiability issue is NP-complete, according to the Cook-Levin…
Q: Question 31 An optimal solution is only optimal with respect to a particular mathematical model that…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: What is modularity, and how does it differ from other types of architecture? How does C's modular…
A: Ancient Greek and Roman architecture. The style that was widely used in ancient Greece and Rome is…
Q: What about the presentation suggests the features of"Death by powerpoint"? What went wrong?what…
A: A program that is used to present about any specific information in an organized way is called…
Q: A computer user finds that his wireless router transmits data at a rate of 75 Mbps (megabits per…
A: Solution is given below:
Q: In comparison to more conventional programming approaches, what are the pros and downsides of using…
A: Dynamic programming is a programming style which involves break down of a program into sub-parts and…
Q: I/O subsystem description is needed in detail. Differentiate between different input and output…
A: I/O devices are vital in the computer systems. They furnish clients the method for cooperating with…
Q: What is the most power-hungry component in a high-end gaming computer?
A: Introduction: Center for Processing. The most crucial component of every computer, whether it is…
Q: What role do regions and availability zones play in increasing the robustness, availability, and…
A: The Answer is in given below steps
Q: Is there a specific goal in mind when it comes to authentication? Look at the benefits and drawbacks…
A: Introduction: Servers utilize authentication when they need to realize who is getting to their…
Q: Question 3 The StarHub IT Solution Sdn. Bhd. is in the planning to explore new product and services…
A: General guidance The answer provided below has been developed in a clear step by step manner.…
Q: Which of the following is not a C language keyword? a. continue O b. break C. case O d. pass
A: C have 32 keywords. auto break case char const continue default do double else enum extern…
Q: Form a multimedia project team with various skills, determine the number of teams, job names and…
A: Introduction Media Team (Project administrator, Multimedia Designer, Interface Designer, Writer,…
Q: What is the output of the following code: int x=4; int y=2; while(x<16) { } y=2*(x+1); X=X+1; if…
A: Let's find the value of y x [x+1] y [2*(x+1)] condition(x<16) 4 2 T 5 10 T 6 12 T…
Q: Information Technology audits are used to examine and evaluate organization systems internal control…
A: The Answer is in step-2.
Q: What are the dangers of using the SSTF method for disc scheduling?
A: Introduction: The shortest search time first (SSTF) method chooses the disc I/O request that needs…
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 4 steps with 4 images
- Class Inheritance with abstract class Define a class Employee with the following fields: _name, _empId, _department, _position (_title), _yearlySalary, _fullTime (a boolean: true/false) , _month , _year (time of hire) Add constructor and properties Define an abstract method GetBiMonthlySalary() (if the employee is paid twice a month) Define an abstract method GetVacationTime() that returns the number of vacation time this employee would have based on time of hire Override the ToString() method to return a string that contains the information pertaining to an employee such as: name, empId, department, and where full time or not. Define a class HourlyEmployee that inherits from Employee. This class should have 2 fields of its own: _hours (hours worked in half a month) and _wage (hourly wage) Provide necessary constructor, properties and methods Override the ToString() to also return the additional fields Gets 3 days of vacation after first year if the employee works…Class definitionDefine a class bankAccount to implement the basic properties of a bank account. Anobject of this class should store the following data: Account holder’s name (string) Account number (int) Account type (string, check/savings/business) Balance (double) Interest rate (double) – store interest rate as a decimal number. Add appropriate member functions to manipulate an object. Use a static member in theclass to automatically assign account numbers.(Java) Make the 2 following classes: Employee.java EmployeeTest.java Copy and paste the below starter code into Employee.java: /** * Employee.java extends Person.java * @author * CIS 36B, Activity 11.1 */public class Employee extends Person { private static int numEmployees = 0; private double salary; private String title; /** * Default constructor for the * Employee class. Calls the * default constructor of the * superclass and also initializes * salary and title to default * values */ public Employee() { } /** * Multi-argument constructor for the * Employee class. Calls the * multi-argument constructor of the * superclass and also initializes * salary and title to the * specified values */ public Employee(String name, int age, String gender, Address a, double salary, String title) { } /** * Returns the annual salary * @return the salary */ public double…
- 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.True or False, An abstract class must have at least one abstract method.Java Program This assignment requires one project with two classes. Class Employee Class Employee- I will attach the code for this: //Import the required packages. import java.text.DecimalFormat; import java.text.NumberFormat; //Define the employee class. class Employee { //Define the data members. private String id, lastName, firstName; private int salary; //Create the constructor. public Employee(String id, String lastName, String firstName, int salary) { this.id = id; this.lastName = lastName; this.firstName = firstName; this.salary = salary; } //Define the getter methods. public String getId() { return id; } public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public int getSalary() { return salary; } //Define the method to return the employee details. @Override public String toString() { //Use number format and decimal format //to…
- Java Program This assignment requires one project with two classes. Class Employee Class Employee- I will attach the code for this: //Import the required packages. import java.text.DecimalFormat; import java.text.NumberFormat; //Define the employee class. class Employee { //Define the data members. private String id, lastName, firstName; private int salary; //Create the constructor. public Employee(String id, String lastName, String firstName, int salary) { this.id = id; this.lastName = lastName; this.firstName = firstName; this.salary = salary; } //Define the getter methods. public String getId() { return id; } public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public int getSalary() { return salary; } //Define the method to return the employee details. @Override public String toString() { //Use number format and decimal format //to…Java Program This assignment requires one project with two classes. Class Employee Class Employee- I will attach the code for this: //Import the required packages. import java.text.DecimalFormat; import java.text.NumberFormat; //Define the employee class. class Employee { //Define the data members. private String id, lastName, firstName; private int salary; //Create the constructor. public Employee(String id, String lastName, String firstName, int salary) { this.id = id; this.lastName = lastName; this.firstName = firstName; this.salary = salary; } //Define the getter methods. public String getId() { return id; } public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public int getSalary() { return salary; } //Define the method to return the employee details. @Override public String toString() { //Use number format and decimal format //to…Classes: Write a Person class that has these attributes: person_ID, first and last names, and age Default and overloaded constructors Accessors and mutators equals method toString method (make this virtual if C++, don't forget to prep the class for polymorphism) Inheritance: Create a child class to Person called Student: Attributes: GPA and status (freshman, sophomore, junior, senior, graduate, graduated). Make sure you have appropriate accessor/mutator methods Create another child class to represent Faculty. This class will have faculty rank and length of service as attributes along with an office location. Again, add methods as needed. Application Create an application that displays a menu that allows users to add students or faculty, or print either one or exit. Deliverable: Submit your source code and classes on Github (you will be supplied an account) You will also submit a Word document and your code on Canvas. In the document you iwll write a summary of your design…
- Classes: Write a Person class that has these attributes: person_ID, first and last names, and age Default and overloaded constructors Accessors and mutators equals method toString method (make this virtual if C++, don't forget to prep the class for polymorphism) Inheritance: Create a child class to Person called Student: Attributes: GPA and status (freshman, sophomore, junior, senior, graduate, graduated). Make sure you have appropriate accessor/mutator methods Create another child class to represent Faculty. This class will have faculty rank and length of service as attributes along with an office location. Again, add methods as needed. Application Create an application that displays a menu that allows users to add students or faculty, or print either one or exit. Must use an array and add comments on your code. C++employee and production worker 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, then use the object’s accessor methods to retrieve it and display it on the screen. satak overfallowJava programming lanaguage A. Design and implement the class Circle that contains the double private data field radius and the following member methods: getRadius that returns the radius of Circle setRadius that sets the radius of Circle area that calculates and return the area of a Circle object (area = π*r²). toString that returns the radius of a Circle object as a string. Two constructors; the first one without arguments. The second constructor with one parameter r. It initializes the radius to r. B.Design and implement the class Cylinder that inherits the class Circle and contains one double private data field height and the following member methods: getHeight that returns the height of Cylinder setHeight that sets the height of Cylinder area that calculates and return the area of a Cylinder object (area = 2*π*r²+2*π*r*h). volume that calculates and return the volume of a Cylinder object (volume = π*r²*h). toString that returns the radius and height of a Cylinder object as…