The methods and variables defined within a class are called O methods of the class members of the class modifiers of the class values of the class
Q: What exactly is the distinction between a software development process and a business process? Provi...
A: Introduction The software process is a set of work that is applied to design or built a software pr...
Q: B: write a program to show this message box elete are you sure you want to delete this file Yes No
A: Solution: The message box is special dialog box used to display the information to the user. In the ...
Q: exactly are the objectives of Booth's algorithm?
A: Goals of Booth's algorithm Booth's algorithm is used for reducing the number of computations for th...
Q: PROBLEM: Write a C++ program that will accept 3 strings (these should be of different sizes) then ...
A: #include <iostream>using namespace std; int main(){ //Sort three numbers. string str[3];...
Q: The term "multicore processor" means "processor with several cores."
A: Hello student Greetings Hope you are doing great Thank You!!!
Q: What are the two methods for using the Substitute User identity command? For each of these two, give...
A: Introduction: The command for each of these two.
Q: What exactly is an opaque export from a module?
A: Given:- What exactly is an opaque export from a module?
Q: Write a C++ program that will accept 3 strings (these should be of different sizes) then sorts them ...
A: Step-1: StartStep-2: Declare string array str of size 3Step-3: Declare a string variable tempStep-4:...
Q: What would happen if database referential integrity was not enforced? What are the most probable err...
A: Step 1 Introduction: The association between tables is referred to as referential integrity. Becaus...
Q: What network management systems are currently on the market? What are the two most critical features...
A: Introduction: A Network Operating System (NOS) is a customized operating system that enables compute...
Q: What is the function of cache memory?
A: Introduction: The temporary memory known as "CPU cache memory" is referred to as cache. This chip-ba...
Q: What are the distinctions between computer organisation and computer architecture?
A: Introduction: The distinction between computer organisation and computer architecture is as follows:
Q: How does virtual memory function? What exactly is the point of swapping?
A: INTRODUCTION virtual memory is a concept about memory management technique in which secondary memor...
Q: Give two benefits of using a stack-based IF as an example. Give an example of a disadvantage.
A: A stack is used when a variable is not used outside that function.
Q: What distinguishes computer systems from the rest of the world?
A: Introduction: A computer is essentially a machine that accepts raw data as input and processes it. T...
Q: What are the responsibilities of system maintenance?
A: Intro The goal of the maintenance process is to keep a system's ability to offer a service operation...
Q: What does the superparamagnetic limit imply for disk drives and how does it affect them?
A: A form of magnetism that appears in small ferromagnetic or ferromagnetic nanoparticles called as Sup...
Q: You are on the west bank of a river with a bag of corn, a goose, and a fox. There is a boat on this ...
A: The premise is always the same, A can't be left with B, and B can't be left with C. A & C howeve...
Q: Discrete event simulation is a term that refers to the simulation of discrete events. What is its re...
A: Discrete event simulation is used to record or evaluate the performance record of the process which ...
Q: In what ways does a rigid disk drive differ from other types of storage devices?
A: A stiff disc drive's physical components Platters, spindle motors, read or a write heads, actuator a...
Q: The initial state of MOD-16 down counter is 0110. The state of the counter A) After 33 clock is 0101...
A: The initial state of MOD -16 down counter is 0110. The state of the counter So the correct option...
Q: Python Programming Activity1 1.Create a Python program that will convert a Philippine Peso amount to...
A: Algorithm: Start Enter amount in pesos Calculate dollars=round(pesos*0.021,2) Calculate euro=round(...
Q: What are the distinctions between IT security implementations in a typical on-premises data centre a...
A: In On premises data centers, systems are connected through local network. In cloud environment, syst...
Q: What exactly does educational data mining entail? What is the distinction between educational data m...
A: Intro
Q: Consider the following high-level function. int f(int n, int k) { int b; b = k + 2; if (n == 0) b = ...
A: ANSWER:-
Q: Provide the names of three IGPs (internal gateway protocols).
A: Protocols for Interior Gateways (IGPs): The IGPs are the protocols that are employed inside the auto...
Q: Where does cin get its input?
A: Introduction: C++ is a general-purpose programming language that is frequently utilized in competiti...
Q: In contrast to database approaches, why is data integrity in file management systems jeopardised?
A: INTRODUCTION: Here we need to answer why is there a compromise on data integrity in file management ...
Q: What does it mean to "resist the desire to code" according to the classic programming adage?
A: Introduction: What does it mean to "resist the desire to code" according to the classic programming ...
Q: What are the various factors that influence network communication performance?
A: Introduction: The performance of computer networks is influenced by a few things. These variables wi...
Q: What is the difference between clock cycles and clock frequency, and how do you explain it?
A: Introduction: When it comes to clocks, frequency is usually measured in clock pulses per second. A 1...
Q: SELinux is an example of what kind of Access Control? RBAC O DAC МАС O Rule-based Access Contral
A: SELinux stands for Security Enhanced Linux and this is a security architecture for Linux system that...
Q: PROBLEM: Write a program that prompts the user to input coefficients A, B, and C of a quadratic equa...
A: I have provided C++ CODE along with CODE SCREENSHOT and TWO OUTPUT SCREENSHOTS----------------
Q: Provide me with the MATLAB code to swap the first and last row of the matrix given below, mat = 1111...
A: Requirement: Provide me with the MATLAB code to swap the first and last row of the matrix given bel...
Q: What is the difference between high-level and low-level languages? What is the purpose of translatin...
A: Introduction Computers are electrical devices that cannot understand human languages. Humans or pro...
Q: Describe and distinguish the differences between the following Data gramme packet switching and v...
A: Intro Packet-witching using datagram is also known as Datagram Packet Switching Packet-switching usi...
Q: Write an R program, using the corrgram library, to plot the Average_Daily_Traffic_Counts.csv dataset...
A: 5. answer import matplotlib.pyplot as plt import numpy as np import pandas as pd data = pd.read_c...
Q: Computer science ________is the viewable and editable uncompiled programme statements.
A: Introduction: is the viewable and editable uncompiled program statements. A programming language is ...
Q: How many distinct communication channels does a six-person project team have? How many extra lines o...
A: Intro The communication channel specifies the way to flow the information between people in a proje...
Q: Explain the difference between one-to-one and many-to-one multi-threading models. Highlight at least...
A: Let us see the answer:- Introduction:- Multithreading allows many pieces of a program to run at the ...
Q: Convert the CFG to a pushdown automaton S a| aAB A - DC | bBB B → BC | C C +€ D →e|cD
A: CFG: CFG stands for Context Free Grammar. It is a formal grammar which is used to generate all poss...
Q: What are the advantages and disadvantages of putting a gateway in your network?
A: Introduction: A gateway is a network's entry and exit point. Each data packet must travel through a ...
Q: What is the list loopback command for IPv4? What is the IPv6 command list?
A: Intro List loopback command for IPv4 ? The loopback network in IPv4 is 127.0. 0.0 with a subnet mas...
Q: Is Geometric Series True or not? You probably have heard about the geometric series in one of your m...
A: Since no programming language is mentioned, I am using matlab. Code: % 1x=input('Enter x value: ');%...
Q: 2. Consider the following network address: 209.15.6.0/28 a. How many subnets are there in this netwo...
A: Given network address=209.15.6.0/28 Find:-Subnets=? first and last valid hosts=? s...
Q: What Are the Benefits of Employing a Relational Database?
A: Introduction: After being converted into rows and columns format, the data is standardised and can b...
Q: B: Write a Program to compute the area of triangle with design.
A: Input : Base of triangle Height of triangle Output : Area of triangle
Q: This is the branch of law that involves two parties that have a grievance that needs to be settled. ...
A: Criminal is a popular term used for a person who has committed a crime or has been legally convicted...
Q: Which degree of access produces the quickest results?
A: Introduction: Who has access to certain web portal features is determined by access levels.
Q: What exactly is multiplexing, and how does it help you?
A: Introduction: Many signals are combined into a single signal, which is sent via a common media, in t...
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:
Urgent!
Step by step
Solved in 2 steps
- Given the following code for a class named Employee, complete the following constructor public class Employee ( private int employeeID; private int SSN; public Emplyee(int employeeID, int SSN) {Please Solve the Question in C++ as quickly as you can in 40 minutes. And do the same as asked in the question. Don't use extra things, please. Write a class named Grade that has the following member variables and functions. Variables : protected: double score, char letter Functions: Required Constructors Getscore() // it will return score Getgrade() // it will assign the grades to letter variable and returns it. If score> 89 then A, > 79 then B, ..>69 then C, > 59 then D, else F. Derive a class named PassFail publically from class Grade that has the following member variables and functions. Variables: private: MinPassing Functions: Required constructors Getgrade() // it will return “P” if score >=MinPassing else return “F” Derive a class named FinalExam publically from class PassFail that has the following member variables and functions. Variables : private :questions (total questions), missed(missed questions), points…Examine the following code and select the correct statements (choose all possibleoptions): class Bottle {Bottle() {}Bottle(WaterBottle w) {}}class WaterBottle extends Bottle {WaterBottle() { }WaterBottle(Bottle w) { } } a) The class Bottle defines two overloaded constructors.b) The class WaterBottle defines two overloaded constructors.c) The class compiles successfully—a base class can use reference variables of its derived class as method parameters.d) Bottle and WaterBottle cause syntax errors.e) The class compiles successfully - A derived class can use reference variables of its base class as method parameters.f) A base class can’t pass reference variables of its defined class, as method parameters in constructors.
- How many default constructors can a class have? a. A class cannot have a default constructor. b. only one c. as many as it needs d. one or more, but fewer than threeAnalysis the following class definition and answer the following question. class Student{ private int id, age; protected float mark; int getAge (int a){ return a ; } protected void setMark (float m){ mark = m; } float result(){ return mark / 2; } } Which is the member variable of the class? a. setMark b. getAge c. result d. private e. ageiven a class named student, which of the following is a valid constructor declaration for the class? Student (student s) { } Void student ( ) { } Static void student(){ }. Student student ( ) { }
- Question: Choose the correct one. Note: Give me all the answers without explanation. 1.It is an instance of the class Select one: a. Method b. Object c. Data member d. Constructor 2.The encapsulation concept means. Select one: a. The class has private constructors and methods b. The data members are public access c. The data members are private access d. you can't access the members of the class even from the class itself 3.char A[]="hahahah"; char* p=&A[0]; *p='na'; p="CII"; cout<<A; the output is. Select one: a. CIIhahahah b. hahahah c. aahahah d. nahahah 4.Let A is char array as follows: char A[]=”hahahah”; the length of A Select one: a. 32 characters b. 7 characters c. 28 characters d. 8 characters 5.class A{int x;}; class B:public A{int y;public: void add(){y=++x;}};to correct the error. Select one: a. We should use protected: in class A b. We should use private: in class A c. We should use protected: in class B d. We should use public: in class B…Given the following class, called NumberHolder, write some code that creates an instance of the class, initializes its two member variables, and then displays the value of each member variable. public class NumberHolder { public int anInt; public float aFloat; }Create a class named Employee which contains an employee name, available to the entire program (public), and an employee ID number and hourly pay rate, available only to the members of the Employee class (private). Also write a constructor (the __init__ member function) which accepts a pay rate and changes it to 7.25, if the value entered is less than that. Do not write any accessor or mutator methods for the class.
- Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries. Define a class addressType that can store a street address, city, state, and ZIP code. Use the appropriate functions to print and store the address. Also, use constructors to automatically initialize the member variables. Define a class extPersonType using the class personType (as defined in Example 10-10, Chapter 10), the class dateType (as designed in this chapters Programming Exercise 2), and the class addressType. Add a member variable to this class to classify the person as a family member, friend, or business associate. Also, add a member variable to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the member variables. Define the class addressBookType using the previously defined classes. An object of the type addressBookType should be able to process a maximum of 500 entries. The program should perform the following operations: Load the data into the address book from a disk. Sort the address book by last name. Search for a person by last name. Print the address, phone number, and date of birth (if it exists) of a given person. Print the names of the people whose birthdays are in a given month. Print the names of all the people between two last names. Depending on the users request, print the names of all family members, friends, or business associates.Chapter 10 defined the class circleType to implement the basic properties of a circle. (Add the function print to this class to output the radius, area, and circumference of a circle.) Now every cylinder has a base and height, where the base is a circle. Design a class cylinderType that can capture the properties of a cylinder and perform the usual operations on the cylinder. Derive this class from the class circleType designed in Chapter 10. Some of the operations that can be performed on a cylinder are as follows: calculate and print the volume, calculate and print the surface area, set the height, set the radius of the base, and set the center of the base. Also, write a program to test various operations on a cylinder.-Design a class named AutomobileLoan that holds a loan number, make and model of automobile, and balance. Include methods to set values for each data field and a method that displays all the loan information.