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.
Explanation:
1. How many computers do you want to connect or how big the network should be?
This would tell us what kind of a network need to be built. It can be LAN/MAN/WAN
2. The location where network needs to be built?
We have to check the geographic condition too before creating a network
3. What is the budget?
Based on the budget only, we can decide the wires to be used if require we can negotiate the budget so that we can create effective network
4. Will I get an additional resources to work?
This is essential to estimate the time that is required to complete the task.
5. When the project needs to be completed?
This is crucial because a business might be planned thereafter.
My sister works at Mayo and she says come in any time to any Mayo Clinic and say “ I need a job interview stat!”