Write a C++ program to create a base class called transportation, the base contains three classes as followed: (Car, Airplane and ship), the Car class have two classes (Bus and Taxi) by using the suitable type of inheritance?
Q: What is the purpose of a computer application software programme?
A: Justification: An application programme (also known as an app) is a computer programme that is meant…
Q: What exactly is Inverse ARP?
A: Introduction: ARP in reverse:
Q: Explain why modeling the context of a system in development is vital. Give two examples of errors…
A: INTRODUCTION: Context models depict the environment in which a system is being built, which…
Q: Explain what software security is and why it's crucial in the software development life cycle.
A: The following are the primary advantages of the using a secure SDLC: Makes security a constant issue…
Q: Give an example of data tampering, forgeries, and web jacking.
A: Example of data tampering: In the instances where data packets are transmitted unprotected, then a…
Q: The diversity of data is one of the hallmarks of Big Data. Explain why this feature has necessitated…
A: Big data: It collects structured, semi-structured, and unstructured data from enterprises that can…
Q: How would you describe VM as a memory management tool?
A: VM{memory}: Each virtual machine uses memory according to its chosen size, plus virtualization…
Q: Computer science A. What exactly is an antiviral programme? B. As a user, you may have come across…
A: Introduction A. Antivirus Antivirus software, or a collection of software packages, identifies,…
Q: Write an article in which you compare and contrast CPU Scheduling Algorithms?
A: A scheduling algorithm is an algorithm that is used top estimate the requirement of CPU time to…
Q: What are the microkernel design principles of the operating system? What is the main difference…
A: The microkernel operating system is based on the concept of reducing the kernel to only the most…
Q: Computer networking Describe why an application developer might choose to run an application over…
A: Introduction: TCP is, in fact, a computer language for creating connections. UDP is a programming…
Q: What are the three types of backups that may be utilised in database recovery? Explain what each…
A: Introduction: MANAGEMENT SYSTEM FOR DATABASE RECOVERY: The process of recovering data that has been…
Q: Define the phrase motion input and explain how it is used in the entertainment business, military…
A: Input motional another: Gesture recognition is word for motion input. Air motions may be used to…
Q: The router layer 2 protocol has been found to contain a number of flaws. In a PPP encapsulated…
A: Layer 2 Protocol Issues In the OSI architecture, the Data LInk layer is the second layer. It is…
Q: What are the three basic computer parts?
A: A machine is made up of a number of core components. These include hardware, applications,…
Q: Several new projects are being staffed by outside contractors who will be working on servers in the…
A: ANSWER:-
Q: What exactly is a multilayer switch?
A: Introduction: A multilayer switch is a network device that may operate at higher layers of the OSI…
Q: For this task, you are to write code that calculates the average age of family members. Instructions…
A: ALGORITHM:- 1. Take input for the number of family persons. 2. Take input ages for each of the…
Q: Short answer Computer science Name two major differences between IPV4 and IPV
A: Introduction: The following are the distinctions between IPv4 and IPv6:
Q: List four project features that would support the use of the software engineering technique in…
A: Introduction: four project characteristics that support the use of the software engineering…
Q: Assume that two students are attempting to enroll in a course for which only one seat is available.…
A: Database Systems, also known as DBMS, is software that collects electronic and digital records to…
Q: Clearly define the meaning of two types of relationships in the context of a UML class diagram:…
A: Introduction: Relationships are used in UML to express a link between structural, behavioral, or…
Q: Using examples, differentiate between system programming and application programming, and explain…
A: Classification: With examples, describe the distinctions between system programming and application…
Q: Recognize parallel and serial programming?
A: Serial Programming One task is accomplished at a time, and all tasks are completed by the same…
Q: Without using any loop In PHP programming languague The value of the input variable is 9,3,5,5,7,8.…
A: ANSWER:
Q: B C 15 45 65 76 Evaluate the following IF statement and provide its correct answer in the field…
A: Over here we have given logical condition in excel.
Q: computer science -Describe the project manager's, sponsor's, business analyst's, and programme…
A: Introduction: The project manager is the person in charge of steering the project. In an…
Q: 3) Write a Phyton to compare these two divisions ;c-a//b and d-a/b. (// Integer division operator).…
A: Solution: Given,
Q: Describe how virtual reality could be used to help students study in one of your most difficult…
A: Virtual reality aids pupils in learning one of the most difficult subjects: We know that virtual…
Q: How many bits are needed to address a 4M x 16 main memory if and only if the following conditions…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: What does the exehdr software accomplish?
A: Program EXEHDR: EXEHDR application or EXEHDR. The term "EXE" refers to a Windows executable file…
Q: In your own words, explain as a criminology student, why there's a need to know and study about film…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. Would could…
Q: Explain the FPU control word in a few sentences.
A: Floating Point Unit (FPU): A floating point a processor (FPU) is a processor or a component of a…
Q: If a communications session needed encryption or compression, which layer of the ISO/OSI Reference…
A: Introduction: ISO/OSI is an abbreviation for international standard organization/open system…
Q: Explain double precision in a few words.
A: Double precision The term "dual precision" refers to a particular form of floating point integer.
Q: Discuss the uniqueness of cyber ethics and the neutrality of cyber technology in depth.
A: Introduction: Ethics is a term used to the describe a sensible person's public conduct and behavior.…
Q: Explain to the average user, using one memory management strategy and interrupts, what happens…
A: Introduction: Multitasking is the process of carrying out multiple tasks at the same time. This…
Q: What does the phrase "computer" mean to you?
A: Computer: When an electronic device is on and linked to other devices, such as another computer, a…
Q: reate an executive summary that explains how MS Office may be utilised to help an organisation run…
A: Introduction: MS Office may assist an organisation run in a variety of ways, including the…
Q: What are the distinctions between software and web engineering?
A: Software and web engineering: The majority of software is made up of a collection of data or…
Q: Compare and contrast various multithreading models in different operating systems (Linux, Windows,…
A: Models with Multiple Threads In a system, both kernel and user threads must be handled. Kernel…
Q: How can you pick partial table contents?
A: Solution:- We can pick partial table contents by naming the desired fields and by placing…
Q: VLAN is intended to provide administrative access to netwc
A: Below the VLAN is intended to provide administrative access to network devices
Q: What are the risks of a data breach and how will it affect the firm in terms of cyber security?…
A: Cyber Security: Cyber security is the use of technology, procedures, and policies to prevent cyber…
Q: Why is OSPF multi-area used? In multi-area OSPF, how does OSPF establish neighbor adjacencies? How…
A: OSPF: Multiarea OSPF refers to the division of a large OSPF area into smaller areas. In bigger…
Q: Consider the adjacency matrix below. Upload a picture (it can be hand drawn) of the adjacency list…
A: Dear student, We valued your time but as per guidelines, I can answer the only first question.…
Q: Formal Languages and Automata Theory Give context-free grammars that generate the following…
A: Context Free Grammar for a) S -> R1R1R1R R -> 0R|1R|ϵ Context Free Grammar for b) S ->…
Q: How does Netflix employ collaborative filtering tools to match movie titles to user preferences?…
A: Netflix use collaborative filtering: To provide suggestions, collaborative filtering looks for…
Q: Explanation of the destiny of a bathtub curve for a microprocessor working in an arctic location, on…
A: Bathtub curve: A bathtub curve is a graphic depiction of a product's or collection of goods'…
Q: A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2,…
A: Logic , if there are n micro- operation then we can represent it in form of 2n where n will…
Step by step
Solved in 3 steps with 1 images
- Write program in C++ using inhertiance and polymorphism. A car dealership wants you to keep track of their sold and leased vehicles. You have realized that all vehicles have a make, model and vehicle identification number so you are going to factor those attributes out and put them in the base class as private attributes. Additionally you realize that you need to create two derived classes: one that keeps track of vehicles that are sold and the other that keeps track of ones that are leased. Vehicles that are sold have a sale date and sale amount. Vehicles that are leased have a monthly lease payment and terms of the lease (number of years). For all classes, create a proper overloaded constructor and display method that properly displays the class’s attributes. For your display method make sure you are using proper run-time polymorphism techniques so that your code calls the correct display methods. Complete main.cpp and follow comments for instruction Given code of .cpp and .h classes…In C++ write the definition of the class professorType, inherited from the class personType, defined in Chapter 10, with an additional data member to store a professor’s highest degree. Add appropriate constructors and member functions to initialize, access, and manipulate the data members. Write a test program to initialize, access, and manipulate the data members. For example, the mathProfessor holds a Doctorate degree.Write C# equivalent statements for the following: An “Account” class will be created having properties: accountName, accountNumber, accountType, totalBalance and methods: WithdrawAmount(), CheckBlance(), DepositAmount(). Derive child classes, that is, “SavingAccount” and “CurrentAccount” from the Account class and implement the following functionality. While taking input from user, check whether the account type is Saving or Current. If user enters “Saving”, an object of Saving Account will be instantiated and while depositing amount in the account an extra 3% of the amount will be deposited (as an extra profit) with the actual amount entered by user. If user enters “Current”, an object of Current Account will be instantiated and while depositing amount in the account, no extra amount will be deposited. Only the actual amount will be deposited. Also implement all the methods mentioned above.
- Write a class Person that has attributes of id, name and address. It has a constructor to initialize, a member function to input and a member function to display data members. Create another class Student that inherits Person class. It has additional attributes of rollnumber and marks. It also has member function to input and display its data members. Write a simple C++ code as I am a beginner.Write a C++ program to calculate the area and perimeters of rectangles using the concept of Inheritance Create a 3 classes Rectangle, Area and Perimeter. Here, classes Area and Perimeter are derived from the class Rectangle. Thus, the object of a derived class can access the public members of the Rectangle. When objects of class Area and Perimeter are created, the constructor in the base class is automatically called. If there was public member function in base class then, those functions also would have been accessible for objects a and p. Sample Input and Output:Enter length of the rectangle: 10Enter breadth of the rectangle: 5Area of rectangle: 50Enter length of the rectangle: 6Enter breadth of the rectangle: 2Perimeter of rectangle: 16Write a C++ program to implement the following level of inheritance. 1. Write getter/setters, display function, parameterized, default and copy constructor.2. Write a calculateSalary() function in the Typist class and override the definition inpermanent and casual.3. Write a ‘main’ function and create objects of all classes in main and call the publicmethods of all classes.
- Use C++ to code. Inheritance may be performed by creating two classes, with three data members in the parent class and two in the child class. (classes must have access to data members). The parent class's constructor must take parameters. The values from the child class's constructor are needed by the parent class's constructor. Produce an instance of a subclass and print its information to the console.Write a C++ program to implement the following level of inheritance. Write getter/setters, display function, parameterized, default and copy constructor. 2. Write a calculateSalary() function in the Typist class and override the definition in permanent and casual. 3. Write a ‘main’ function and create objects of all classes in main and call the public methods of all classes.Write a C++ program to implement the following level of inheritance. 1.Write getter/setters, display function, parameterized, default and copy constructor. 2. Write a calculateSalary() function in the Typist class and override the definition in permanent and casual. 3. Write a ‘main’ function and create objects of all classes in main and call the public methods of all classes
- In C++, create a three-level hierarchy of classes with default constructors, along with destructors, both of which announce themselves to cout. Verify that for an object of the most derived type, all three constructors and destructors are automatically called. Explain the order in which the calls are made.Hello, this is one question and not multiple questions. Below is the question. In C++, design and implement two classes in an inheritance hierarchy, according to the requirements listed below, and then demonstrate their capabilities through a short program. Program Requirements: Design a base class, Road, with the following members: Attributes for storing the road’s name, number of lanes, and maximum speed limit. A three-parameter constructor to initialize the three attributes. Accessors and Mutators (Gets and Sets) for each attribute. Input Validation: You should ensure that the number of lanes is always a value greater than 0, and that the maximum speed limit is a value between 0 and 100 MPH. This input validation should apply to both the 3-parameter constructor and the individual accessor functions. A display function that prints the road’s information in a single line format (see the Sample Output for a formatting example). b. Design a derived class, TollRoad, which…C++ What is Inheritance? Why is it useful in programming? Write a program which has a class Shape with appropriate data members. Derive two other classes, namely Rectangle and Circle from the shape class. The derived classes should have functions to calculate Area of each shape respectively and display to users on screen.