Answer:
//""Print results to screen""
Explanation:
In c,c++,java,javascript // is used for the single line comment.
syntax:- // comment.
Whatever text that is followed after // is commented means this line will not get executed by the compiler.
Comments are used to explain the code to other person who is working on the code or trying to understand that code.
Answer:
The following are the answer to the given points:
Explanation:
In point (a):
Calculating the long-distance call cost:

Calculating the local call cost:

Calculating the overall cost of PSTN:

In point (b):
Calculating the call rate per second and the average arrival rate:

The call average length:
The complete agent number:

The strength of traffic:
The occupancy of the agent:

Calculation of obtained:

We get = 0.329 to substitute values.
In point (c):
The rate of blocking = 
average call time 

In point (d):
Calculating the number of link, which is required:
In point (e):
Calculating the Line Number:
PSTN line number:

In point (f):
The gross design expense = $ 2309. 5
Answer:
The function definition to this question can be given as:
Function definition:
void printAttitude(int x1) //define function printAttitude.
{
//nested else-if statements
if(x1==1)
//if block
cout<<"disagree"<<endl;
//message
else if(x1==2)
//else if block
cout<<"no opinion"<<endl;
//message
else if(x1==3)
//else if block
cout<<"agree"<<endl;
//message
else
cout<<" ";
}
Explanation:
In the above method definition firstly, we define a method that is "printAttitude". In this method, we pass an integer variable that is "x1". This function does not return any value because its return type is void. In this method, we use nested else-if statements. The description of these conditions can be given as:
- In the if block we check the variable x1 value is equal to 1 If this condition is true. It will print "disagree" otherwise it will go to else-if block.
- In the else-if block, we check the variable x1 value is equal to 2 if the condition is true. It will print "no opinion". otherwise, we will go to another else-if block.
- In this block, we check the variable x1 value is equal to 3 if this condition is true. It will print "agree".otherwise it will go to else block.
- In the else block it will print nothing.
That should be the replace function which performs word replacements in documents.