Answer:
interface GUIComponent{
public void open();
public boolean close();
public void resize(int width, int height);
public void move(int x, int y);
}
Explanation:
Answer:
B)tracert
Explanation:
Tracery Command can be regarded as
network diagnostic tool, it is used in tracking process of pathway of packet ranging from source to destination on IP network. It as well allows to know real time of each hops that are been taken by a packet as it enroutes to it's destination. The traceroute can be run by following these steps:
✓Open the run window
✓Open Command prompt, this can be done by enter "cmd" then enter.
✓ input" tracert" then destination ( Ip address or web address)
It should be noted that Tracery command issued from the command prompt will show the route that a packet travels from the issuing computer to another computer.
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:
PER= 0.824
Explanation:
Total bytes = 1024+6
=1030 bytes
=1030*8 bits
= 8240 bits
BER = 0.0001
Packet Level Error (PER) = 8240*0.0001
= 0.824