Question 1 Suppose we have the following definitions: class Frabjous { private: char fab[20]; public: Frabjous(const char * s= "C++"): fab(s) {} virtual void tell() { cout << fab; } class Gloam: private Frabjous{ private: int glip; public: Gloam(int g = 0, const char * s = "C++"); Gloam(int g, const Frabjous & f); void tell(); }; Given that the Gloam version of tell() should display the values ofglip and fal provide definitions for the three Gloam methods.
Q: What factors lead to the creation of malicious software that has a worldwide impact?
A: Introduction: Malware is just software with a malicious goal. Some of the things that malware can do…
Q: 5. Design an algorithm that asks the user for the name of a text file containing a grid of numbers…
A: Since it is not mentioned to use which programming language we are using python
Q: Determining the role that OLAP plays in descriptive analytics is an absolutely essential step to…
A: OLAP is a computer processing that enables a user to easily and selectively extract and view data…
Q: What procedures are required to install software on a local computer, a portable device, or a web…
A: The above question is solved in step 2:-
Q: Give examples to properly explain the software structure review process.
A: INTRODUCTION: Here we need to explain software structure review process with examples.
Q: 5.1.11.(一) Prove that each graph below is isomorphic to CDC3. 我
A: Isomorphic: To be isomorphic ,two graph must have equal number of vertices and edges . Below the…
Q: Give examples to properly explain the software structure
A: Answer has been explained below:-
Q: Both a false positive and a false negative were reported. Authentication based on biometric…
A: Introduction The following are the differences between false positive and false negative biometric…
Q: Could you offer a brief overview of the primary elements that go into the construction of the…
A: OS components include: Files, please! Process Management oversees processes. I/O management.…
Q: The storage of data on the cloud provides a diverse selection of use cases, business strategies,…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. In this…
Q: My understanding of multifactor authentication is limited at best. What role does it play in…
A: Introduction: Is a type of security that uses multiple security measures to determine if a person is…
Q: There are many different kinds of parts that go into making up an information system.
A: Given: People use information systems, which include hardware, software, and telecommunications…
Q: What kind of moral challenges do you anticipate arising from our increasing reliance on artificial…
A: Artificial Intelligence(AI): The use of AI in legal systems throughout the globe is increasing,…
Q: What are some of the most significant issues you have when it comes to making use of the internet?
A: The most significant reservations about attending online classes are: 1.Practice is the best method…
Q: Which of the following is a valid method declaration? * A. public static void method1 B. public…
A:
Q: Explore the possibilities of using Structured English to describe processes that are beyond the…
A: It should be noted that: The following is a list of some of the benefits of using static analysis:…
Q: It's possible to have artificial intelligence in many different forms. Provide instances of how…
A: Introduction: Artificial intelligence is the a computer emulation of human intelligence processes.…
Q: If you could explain how one of the cache protocols is used in its intended manner, that would be…
A: Given: Please provide a condensed explanation of one of the cache methods. I will cover MESI…
Q: When it comes to the administration of memory, what roles do the various components of an operating…
A: Start: What role does an operating system play in memory management? Operating systems' memory…
Q: How many different flavors of artificial intelligence are there? Define the many areas of artificial…
A: Launch: The computer simulation of human cognitive processes is known as artificial intelligence.…
Q: The following are the services that can be used in the cloud, along with instructions on how to get…
A: Cloud: The term "the cloud" is used to refer to computer servers that may be accessed over the…
Q: Both a false positive and a false negative were reported. Authentication based on biometric…
A: Both a false positive and a false negative were reported. Authentication based on biometric…
Q: 1. Create a list of the most significant components of the operating system that uses Visual Basic…
A: VisualBasiWindow: Visual basic window - An IDE window. This window appears when the current…
Q: Provide a concise explanation of what it is that Machine Language includes, if anything at all.…
A: Given: The task at hand is to provide an explanation of machine language.
Q: Provide three specific instances to illustrate how business processes could benefit from using cloud…
A: Cloud computing is the method of storing, managing, and processing data utilizing a network of…
Q: When it comes to the design of software, what kind of connection do the concepts of cohesion and…
A: Given: When it comes to the design of software, what kind of connection do the concepts of…
Q: When passwords are used to authenticate users, how might a remote attacker (also known as a client…
A: Introduction: Password attacks are one of the most common forms of personal and corporate data…
Q: Write a statement that prints the word "succotash" to standard output. There should be no white…
A: Program in C++
Q: 1. Write an algorithm and draw a flow chart to read a number from the user and check whether the…
A: Answer: Start Declare integer variable num, C, B , A, area,s; Initialise the variables B = 10, A =…
Q: Which sorts of printers are eligible to have their own unique IP addresses?
A: A printer is a hardware output device that is used to print any document. It accepts input command…
Q: Cohesion and coupling are intimately related in software design, but how do they interact?
A: The following sections look at how cohesion and coupling interact in software design: "Cohesion"…
Q: Wireless network technology is often used in nations with low incomes. In some companies, wired LANs…
A: Given: It is becoming more common for homes to have more than one electronic device, such as a…
Q: What are the primary distinctions that can be made between computer operating systems that function…
A: Introduction: Here we are required to explain what are the main differences between real-time…
Q: Investigate the ideas of procedural programming and modular programming.
A: Investigate the ideas of procedural programming and modular programming.
Q: Write a command that will print the number of lines in the file shortlist that contain the string…
A: The C++ language is an object oriented language that uses the principle of abstraction and keeps…
Q: How will advances in artificial intelligence influence the course of the future? What kinds of…
A: Artificial intelligent: Artificial intelligence allows robots to learn from the data they collect.…
Q: Give a PDA for the language ²³
A:
Q: What is the name given to the components of the operating system that are kept in the memory of the…
A: RAM (Random Access Memory) is a type of volatile memory that stores data that is accessible…
Q: Should we make the move to the cloud, and if so, should we?
A: Inspection: Cloud migration allows cloud computing, replacing phones, laptops, and desktops. Cloud…
Q: You should make an attempt, preferably by using English that is organized, to describe processes…
A: Definition: Processes unrelated to systems analysis will be described in structured English. When…
Q: t=(1,2,3,4,5,6,7,8) w=(t[2:5],t[:4],t[3:]) (x,y,z)=w After the program is executed, give the value…
A: Please upvote. I am providing you the correct answer below. Please please
Q: talk about the four most important aspects of continuous event simulation.
A: Your answer is given below. Introduction :- Continuous event simulation :- Continuous event…
Q: The human rights-based approach to science, technology, and development may be the very core of…
A: Given: Do you agree with Mukherjee that a human-rights-based approach to science, technology, and…
Q: Find at least three different firms on the internet that provide CASE tools that are either free or…
A: Given that: CASE tools, or computer-aided software engineering tools, are used to handle certain…
Q: During your time enrolled in an online class, please describe some of the challenges you have while…
A: BARRIERS TO COMMUNICATION: The following are examples of communication difficulties that might…
Q: During this presentation, you are going to go into the topic of architectural design in great…
A: Given: In software development, architectural design is critical. The process of identifying a…
Q: Your computer is shielded from potential dangers coming from the outside world via a firewall. When…
A: Introduction: A firewall prevents users from accessing or leaving the network.
Q: When it comes to social and ethical implications, what are the potential effects of AI and robotics?…
A: Given: Artificial intelligence develops computer systems to accomplish activities that need human…
Q: How far has technology come in the last several decades, and what are the many kinds of technical…
A: The level of innovation brought about by technology: If new ideas are not implemented, the world has…
Q: Discuss in as little detail as possible the technology that is best appropriate. Recognize and…
A: Definition: Any thing, concept, method, or practice that improves human fulfilment by meeting human…
Step by step
Solved in 2 steps
- class Vehicle { private: int wheels; protected : int passenger: public : void inputdata(int, int); void outputdata(); }; class Heavyvehicle : protected Vehicle { int diesel_petrol; protected : int load; public: void readdata(int, int); void writedata(); }; class Bus : private Heavyvehicle char make[20]; public : void fetchdata(char); void displaydata(); (1) Name the base class and derived class of the class Heavyvehicle. (ii) Name the data member(s) that can be accessed from function displaydata(). (iii) Name the data member's that can be accessed by an object of Bus class. (iv) Is the member function outputdata() accessible to the objects of Heavyvehicle class.CSE LAB APEX Test Class - Salesforce Please Desgin the Apex Test Class to solve the below problem public with sharing class MyFirstClass { // Variable to store the values to perform the multiplication logic static Integer a = 5; static Integer b = 9; public static Integer productOfTwoNumbers; public static void multipicationOfTwoNumber() { //Product of the two Numbers productOfTwoNumbers = a * b; }The following is a definition of class Example:class Example{public:Example( int y = 10 ): data( y ){// empty body} // end Example constructorint getIncrementedData() const{return ++data;} // end function getIncrementedDatastatic int getCount(){cout << "Data is " << data << endl;return count;} // end function getCountprivate:int data;static int count;}; // end class Example
- class Base { public: int x, y: public: Base(int i, int j) { x = i; y = j; }}; class Derived : public Base public: Derived (int i, int j) { x = i; y = j; void display() {cout « x <<" "<< y; }}; int main(void) { Derived d(5, 5); d.display(); return e; Error O X=5,Y=5 X-0,Y=0 None of the above Other:Question 15 1(8).png public class numClass { private int a; private static int y = 10; public numClass(int newx) {a-newx; } public void set(int newx) {a=newx; y+=a;} public void setY(int newY) {y-newY; } public static int getY() { return y; } // end of class Blank 1 Blank 1 Add your answer public class output[ public static void main(String[] args) { numclass one new numClass(10); numclass two new numClass (2); try{ one.sety(30); two.set(4); if(one.getY()-30) throw new Exception ("30"); one. sety (40); } catch(Exception e) { two.setY(50); } System.out.println(two.getY()); // end of main } // end of class ***v Computer Engineering lab APEX Test Class - Salesforce Please Desgin the Apex Test Class to solve the below problem public with sharing class MyFirstClass { // Variable to store the values to perform the multiplication logic static Integer a = 5; static Integer b = 9; public static Integer productOfTwoNumbers; public static void multipicationOfTwoNumber() { //Product of the two Numbers productOfTwoNumbers = a * b; }
- class implementation file -- Rectangle.cpp class Rectangle { #include #include "Rectangle.h" using namespace std; private: double width; double length; public: void setWidth (double); void setLength (double) ; double getWidth() const; double getLength() const; double getArea () const; } ; // set the width of the rectangle void Rectangle::setWidth (double w) { width = w; } // set the length of the rectangle void Rectangle::setLength (double l) { length l; //get the width of the rectangle double Rectangle::getWidth() const { return width; // more member functions hereObject oriented programming C++ Use Classes Write a C++ program in which each flight is required to have a date of departure, a time of departure, a date of arrival and a time of arrival. Furthermore, each flight has a unique flight ID and the information whether the flight is direct or not.Create a C++ class to model a flight. (Note: Make separate classes for Date and Time and use composition).add two integer data members to the Flight class, one to store the total number of seats in the flight and the other to store the number of seats that have been reserved. Provide all standard functions in each of the Date, Time and Flight classes (Constructors, set/get methods and display methods etc.).Add a member function delayFlight(int) in the Flight class to delay the flight by the number of minutes pass as input to this function. (For simplicity, assume that delaying a flight will not change the Date). Add a member function reserveSeat(int) which reserves the number of seats passed as…1. Assume the following: class Complex{public:Complex(int, int); //initializes the private data members to the passed in values: // real = value of the first argument // imag = value of the second argumentComplex add( Complex ); //returns a Complex object that holds the sum of two //Complex objectsvoid print(); //prints the values of the private data members in the format: // (real, imag)private:int real, imag;}; Will these two lines work below in a driver program for the class? Complex c1(40,50); //create object (line 1) c1.real=55; //move in value of 55 (line 2) a. yes it will work fine b. no, you will get a compiler error c. need more information on the object d. line 1 will cause an error line 2 will work fine
- package myq2; class Sale { int sellerID, milksale, buttersale; Sale(int sid, int ms, int bs) { sellerID = sid; milksale- ms; buttersale - bs; } elling dairy ifferent days using OOP ers, based on YQ2 int totalsaving(){ return milksale + buttersale; } } ale public class Myq2 { public static void main(String[] args) { Sale s = new Sale(111, 10, 20); System.out.println("Seller ID" + s.sellerID ); System.out.println("Total Saving "+s.totalsaving()); } } 4) Use the parameterized constructor to initialize the member variables of the class. 5) Display the following details of seller using object of Sale class. seller ID, totalsaving Solution to programConsider the following code segment and answer questions 14 and 15. class Point { public: Point (double x = -99, double y = -99) { this -> xM = x; this -> yM = y;} double getx () {return xM; } double gety () {return yM; } void setx (double x) {this -> xM = x; } void sety (double y) {this -> yM = y; } private: double xM, yM; }; 14. What is the output of the following code snippet: Point pl (100); cout << pl.getx() << " " << pl.gety(); a. The output of the program is: -99 -99 b. The output of the program is: 100 100 c. The output of the program is: -99 100 d. The output of the program is: 100 -99 e. None of the above. It doesn't compile because constructor of Point needs two arguments. 15. How many times does the constructor of class Point get called by the following code snippet: Point a (100, 200); Point b[6]; Point *c = new Point; Point *d = new Point (300, 400); a. Four times b. Three times c. Nine times d. Two times e. None of the aboveclass IndexItem { public: virtual int count() = 0; virtual void display()= 0; };class Book : public IndexItem { private: string title; string author; public: Book(string title, string author): title(title), author(author){} virtual int count(){ return 1; } virtual void display(){ /* YOU DO NOT NEED TO IMPLEMENT THIS FUNCTION */ } };class Category: public IndexItem { private: /* fill in the private member variables for the Category class below */ ? int count; public: Category(string name, string code): name(name), code(code){} /* Implement the count function below. Consider the use of the function as depicted in main() */ ? /* Implement the add function which fills the category with contents below. Consider the use of the function as depicted in main() */ ? virtualvoiddisplay(){ /* YOU DO NOT NEED TO IMPLEMENT THIS FUNCTION */ } };