Question 2: Consider the following code and write the complete definition of the mentioned class according to the code written in the main program? Moreover, write additional code in the main program to display details for the employee with the highest salary. class private: public: }; int main() { Employee el("E1000", "AHMAD", "100000"); //ecode, ename, esalary Employee e2 (el); el.display();
Q: Virtual machines don't support instructions set architectures.
A: This statement is not accurate. Virtual machines can support different instruction set architectures…
Q: What are the biggest distinctions between a phone network and the internet?
A: The most notable distinctions between the Internet and traditional phone networks are: One, the…
Q: It's possible that the amount of free space on a hard disc is affected by how often live backups are…
A: RAID : A redundant Array of Inexpensive Disks, or RAID, is a data storage virtualization method that…
Q: Examine the most fundamental methods of providing service to customers.
A: There are a variety of fundamental approaches to catering to the requirements of one's clients, some…
Q: Contemplate wireless networks in poor nations. Wireless has supplanted cable and earlier local area…
A: Introduction: Billions of individuals now have access to the Internet and can take part in the…
Q: Please provide me two solutions to avoid data issues.
A: Introduction Data loss, security breaches, and financial losses are just some of the significant…
Q: Proving yourself worthy of being able to handle bigger tasks, the tech lead has decided to give you…
A: In this question we have to write SQL queries for the given statement and datatypes of tables. Let's…
Q: What are some signs a laptop's operating system has been corrupted?
A: Operating system:- An operating system (OS) is a piece of software that controls a computer's…
Q: There are many different methods in which one may define a system model. What kinds of things have…
A: Introduction: The process of creating a system model involves developing a representation of a…
Q: Demonstrate how trademark ownership may violate a person's free speech rights. How can these…
A: The right to own a trademark can sometimes get in the way of free speech, especially if the brand is…
Q: Being a global virtual company, GM faces several ethical issues. Richard Mason discovered four.…
A: The ethics of information in a variety of fields Information ethics may be broken down into four…
Q: A hash table for m-linked lists? Hash function goals: Example.
A: Definition: Hashing is used to find a particular item among several that seem the same. Hash tables…
Q: How do software developers and customers collaborate?
A: In this question we have to understand how do software developers and customers collaborate? Let's…
Q: Unknown is the number of nodes in the strongest linkedlist. Which one is longest?
A: Without more information, it's impossible to determine which linked list is the longest. The…
Q: What distinguishes symmetric from asymmetric key cryptography?
A: Introduction: Symmetric key cryptography is a type of encryption where the same key is used for both…
Q: If you turn on the computer for the first time and don't hear the fan or see any lights, is it…
A: 1) A problem with a computer system's hardware is often characterised by a malfunction that occurs…
Q: What are the top two wireless technologies?
A: Asked List down the top 2 wireless technologies.
Q: For what reason would stack systems use backwards Polish notation to represent arithmetic…
A: Introduction Arithmetic expression: An arithmetic expression is a mathematical statement that…
Q: If you power on your computer for the first time and don't see any indication lights or hear a…
A: Introduction The Central Processor Unit (CPU) is the "brain" of a computer, comprising the vast bulk…
Q: Customizable multiprocessor systems are an advantage. Benefits make system design harder.
A: Your answer is given below.
Q: The acronym XML stands for "extensible markup language," which is what it really refers to. There…
A: Introduction: Simply expressed, Extensible Markup Language (XML) defines guidelines for the creation…
Q: In the context of the development of computer systems, it is important to make a distinction between…
A: Introduction Computer System: A computer system is a collection of hardware, software, and data that…
Q: Why is it more common to use multitasking (also known as multithreading) than to have many processes…
A: Multitasking, also known as multithreading, is a technique used by operating systems to allow…
Q: What is the purpose of the file that is labeled Bevco.xls?
A: The answer to the question is given below:
Q: In this short discussion, we will quickly go through the Microkernel System Structure of operating…
A: Please provide a brief overview of the operating system's microkernel system structure and mention…
Q: A clarification of the meaning of the word "model" in relation to System Analysis Determine the key…
A: Introduction: Model: Models simplify complex concepts. It helps to understand, analyze, and predict…
Q: Each of these three aspects of technology in the classroom is bolstered by the others. In other…
A: Importance of Technology and Education Collaboration:interactive websites, learning forums, and…
Q: Modern corporations use which firewall construction style? Why? Explain.
A: Modern corporations use a variety of firewall construction styles depending on their specific…
Q: Morality in the age of technology?
A: The morality of innovation is a subfield of morals that addresses the moral issues unique to the…
Q: How does MVC organize web apps? MVC architecture has what benefits?
A: Introduction: This methodology applies to all software development initiatives, regardless of size.…
Q: Use the correct terminology when referring to computer output that is recorded into an optical…
A: A microfiche is a sheet of flat film with dimensions of 105 x 148 mm, approximately the same as ISO…
Q: Modern network apps manage so many connections.
A: When I first began advising, customers regularly asked me what kind of powerful server they should…
Q: Application development tools from these suppliers: Provide examples.
A: App development software is a tool that facilitates the app development process by offering features…
Q: Cloud-hosted software provides several advantages over client-based storage.
A: This inquiry highlights the several advantages of a cloud-based programme over a conventional…
Q: What does the CPU do? What do you conclude?
A: A computer system is made up of a computer plus other hardware and software. It is made up of a…
Q: A super wing-ding diagnostic tool on your computer found that your hard disk, CPU, RAM, and graphics…
A: I can provide some general guidance on how to troubleshoot hardware issues on a computer. Before…
Q: use the file Dining.java which is provided below and Complete the calcTip() method as described in…
A: Declare variables for the tip and a boolean variable for drinks Print the input statement "Were…
Q: Explain the development of the internet and its technical foundations.
A: Introduction: The Internet is a global network of interconnected computers and other devices that…
Q: What are the biggest distinctions between a phone network and the internet?
A: Introduction: Comparatively, the Internet enables for the transfer of any kind of data, including…
Q: Write the steps to submit any online submission form
A: Access the submission form: Locate the website or online platform where the submission form is…
Q: The number of general-purpose processors helps classify computers. is unnecessary, and most may…
A: Based on their computer architecture, computer systems are divided into the following groups:…
Q: Multiprocessor systems' versatility is a major benefit. Please briefly explain how this benefit…
A: INTRODUCTION: A multiprocessor system consists of many processors and communication means.…
Q: Even though my laptop's BIOS has been upgraded, there is no display. What may be the issue?
A: Using this data, we need to determine why there is a display issue. Many methods exist for ensuring…
Q: irewall hardware and software is another important tool for managing and protecting online and local…
A: A firewall is a security device or software that controls and monitors traffic between two or more…
Q: Multiprocessor systems provide adaptability and other benefits. This benefit complicates system…
A: Introduction A microprocessor is a tiny electronic device that performs arithmetic and logical…
Q: What distinguishes symmetric from asymmetric key cryptography?
A: A key is a piece of information used by an algorithm to modify data in cryptography. 1. Using a…
Q: ROM and RAM make up a PC's main memory.
A: Yes, that is correct. ROM (Read-Only Memory) and RAM (Random Access Memory) are both types of memory…
Q: Diagrams may assist distinguish scalar and superscalar processors. Superscalar data processing is…
A: The answer is given in the below step
Q: Compilers and assemblers may sequence assembly language instructions to minimize pipeline risk.…
A: Assembly language instructions may be organised in a pipeline using compilers and assemblers in a…
Q: What differentiates the Internet from the WWW?
A: The basic distinction between the World Wide Web (WWW) and the Internet is so frequently confused…
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:
. Help else dislike for illogical.
Step by step
Solved in 4 steps with 2 images
- Question 2: Consider the following code and write the complete definition of the mentioned class according to the code written in the main program? Moreover, write additional code in the main program to display details for the employee with the highest salary. class { private: public: int main ( ) { Employee el(“E1000", “AHMAD", “100000"); l/ecode, ename, esalary Employee e2 (el); el.display( );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.Question 2: Consider the following code and write the complete definition of the mentioned class accordingto the code written in the main program? Moreover, write additional code in the main program to displaydetails for the employee with the highest salary.class {private:public:};int main ( ) {Employee e1(“E1000”, “AHMAD”, “100000”); //ecode, ename, esalaryEmployee e2 (e1);e1.display( );}
- Language: C++ Create a class named City. Assume that a city has a name, a number of inhabitants, a mayor and an area (in km²). Then create three instances of this class: Bremen, Paris and London. Provide suitable setter and getter methods for each of these properties. The class declaration has to be placed into City.h, the class definition has to be placed into City.cpp and the test program where the instances are created has to be in testcity.cpp. You can set the needed data from the main () function by initialization or read it from the key- board.•Person Class: Person class has attributes: String name, address and int age. Write setperson() function to set values and getPerson() to Print attributes. Also write appropriate constructors.•Employee Class: Write another class Employee having attributes department and salary of type string and double. Write methods setEmployee(), getEmployee() and appropriate constructors for Employee class.•Student Class:•Write a class Student having attributes registration number and GPA of type string and float. Also write setStudent(), getStudent() methods and required constructors. Use the concept of inheritance to achieve the above functionality. Write a main() function to display the information of employee and student.• Note: Call the constructors/methods of parent class in child class where required in java code•Person Class: Person class has attributes: String name, address and int age. Write setperson() function to set values and getPerson() to Print attributes. Also write appropriate constructors. •Employee Class: Write another class Employee having attributes department and salary of type string and double. Write methods setEmployee(), getEmployee() and appropriate constructors for Employee class. •Student Class: •Write a class Student having attributes registration number and GPA of type string and float. Also write setStudent(), getStudent() methods and required constructors. Use the concept of inheritance to achieve the above functionality. Write a main() function to display the information of employee and student. • Note: Call the constructors/methods of parent class in child class where required
- Complete the code for the following program. You are provided with an abstract class called abst. Create a class that will be a child of abst and it will be called usesAbst. Your program will have an int variable called value, and all the appropriate methods, as well 2 constructors. The first constructor will simply set the variable value to 0. The second constructor will set the variable value to equal a passed in parameter. You do not have to comment your code. public abstract class abst{ public abst () { } //Outputs to the screen the message Hello public abstract void sayHello (); //returns the stored int value public abstract int getValue (); //sets the int value to x public abstract void setValue (int x); //Outputs to the screen the message Another method public void output () { System.out.println("Another method"); public String tostring () { return "This is an abstract class"; }Write in python. Write a class named Employee that has **private** data members for an employee's name, ID_number, salary, and email_address. It should have an init method that takes four values and uses them to initialize the data members. It should have get methods named get_name, get_ID_number, get_salary, and get_email_address.Write a separate function (not part of the Employee class) named **make_employee_dict** that takes as parameters a list of names, a list of ID numbers, a list of salaries and a list of email addresses (which are all the same length). The function should take the first value of each list and use them to create an Employee object. It should do the same with the second value of each list, etc. to the end of the lists. As it creates these objects, it should add them to a dictionary, where the key is the ID number and the value for that key is the whole Employee object. The function should return the resulting dictionary.For example, it could be used like…Write c# equivalent statements for the following: There is a book library. Define classes respectively for a library. The library must contain a name and a list of books (use array). The books only contain author name as information. In the class, which describes the library, create methods to add a book to the library, to search for a book by a predefined author, and to delete a book from the library. Write a test class, which creates an object of type library, adds several books to it. Implement a test functionality, which finds all books authored by Stephen King and deletes them. Finally, display information for each of the remaining books.
- Problem: Create a base class called Vehicle that has the manufacturer’s name (typeString), number of cylinders in the engine (type int), and the owner (type Person). Use thePerson class developed this semester. Create a class automobile that is derived fromVehicle and has additional properties: number of passengers (type int) and weight in tons(type double). Create a class Truck which is derived from Vehicle and has additionalproperties: the load capacity in tons (type double, since it may contain a fractional part)and towing capacity in tons (type double). The classes should have:• Two constructors, a default and an overloaded constructor• All appropriate accessor and mutator methods (getters and setters).• An ‘equals’ method (must conform to the Person example and the Object class ).• A ‘toString’ method• A ‘copy’ constructor• A ‘clone’ method• A ‘finalize’ method Write a driver (client/test) class that tests ALL the methods. Be sure to invoke each of the constructors, and ALL…Problem: Create a base class called Vehicle that has the manufacturer’s name (typeString), number of cylinders in the engine (type int), and the owner (type Person). Use thePerson class developed this semester. Create a class automobile that is derived fromVehicle and has additional properties: number of passengers (type int) and weight in tons(type double). Create a class Truck which is derived from Vehicle and has additionalproperties: the load capacity in tons (type double, since it may contain a fractional part)and towing capacity in tons (type double). The classes should have:• Two constructors, a default and an overloaded constructor• All appropriate accessor and mutator methods (getters and setters).• An ‘equals’ method (must conform to the Person example and the Object class ).• A ‘toString’ method• A ‘copy’ constructor• A ‘clone’ method• A ‘finalize’ method Write a driver (client/test) class that tests ALL the methods. Be sure to invoke each of the constructors, and ALL…Write a class Runner having three private data members (distance, minutes, seconds) The class has A constructor which having no parameter – for setting values to zero or null.Getters/setters for data members.Write a function show() which displays the“The player covered “+distance+ “ in “ +minutes +” minutes , and “ + seconds+” seconds”; Write test Application that demonstrates the above class by calling all the methods, creating a Create 3 Runner objects, input values and then display the record of winner.in java