Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
class Window //defining a class Window
{
private:
int width, height;//defining integer variable
public:
friend ostream& operator << (ostream& stm, Window& width)//defining a friend function that takes two parameters
{
return stm<<"a ("<<width.width<<" x "<<width.height<<") window"; //use return keyword that return its values
}
Window(int width, int height): width(width), height(height)//defining parameterized constructor that inherit width and height in its parameters
{}
};
int main() //Main method
{
Window w(80,90);//calling class constructor
cout<<w;//print object value
return 0;
}
Output:
a (80 x 90) window
Explanation:
In the above code, a class "Window" is defined that uses a friend function "ostream& operator" is declared that uses the "ostrea&" as a data type to hold two-variable "stm and w" in its parameter, and declared the parameterized constructor to hold value by inheriting width and height in its parameters.
Inside the main method, a class object is created that calls the constructor and uses the print method to print object value.
Answer:
It is a "True" or "False" integer.
Explanation:
denoting a system of algebraic notation used to represent logical propositions, especially in computing and electronics.
a binary variable, having two possible values called “true” and “false.”.
Answer:
all of the above
Explanation:
Total nodal delay is the sum of all types of delay.There are basically four types delay that are as following:-
- Processing Delay.
- Propagation Delay.
- Transmission Delay.
- Queuing Delay.
T(nodal)=T(processing)+T(propagation)+T(transmission)+T(queuing).
Where T is the delay time.We are given with propagation,transmission and processing.Nodal delay includes these 3 delays.
Hence we conclude that the answer is all of the above.
Answer:
REad from slide and speak clearly and slowy.
Explanation: