Answer:
void print_popcorn_time(int bag_ounces){
if(bag_ounces < 3){
cout<<"Too small"<<endl;
}else if(bag_ounces > 10){
cout<<"Too large"<<endl;
}else{
cout<<(6 * bag_ounces)<<"seconds"<<endl;
}
}
Explanation:
The function is the block of the statement which performs the special task.
For checking the condition in the program, the if-else statement is used.
It can check the condition one or two but if we want to check the more than two different conditions then the continuous if-else statement is used.
syntax of continuous if else:
if(condition){
statement;
}else if(condition)
statement;
}else{
statement;
}
In the question, there are three conditions;
1. bag_ounces is less than 3
2. bag_ounces greater than 10
3. else part.
we put the condition in the above if-else statement and print the corresponding message.
Answer:
The group policy management is one of the policy which used in the microsoft window that basically control the server working environment in the organization. It mainly control the user account and the personal computer account.
The group policy is the centralized management and the provide the various configuration of the operating system. It also manage and control the users setting in the active directory of the management.
Therefore, the group policy management matter in the server environment.
Answer:
Explanation:
The following code is written in Python. It uses the imports the turtle class in order to be able to draw a blue square with 100pixels per side and then a red circle with a diameter of 100 pixels that fits perfectly inside the square.
import turtle
t = turtle.Turtle()
#Make Square
t.fillcolor('blue')
t.begin_fill()
t.back(50)
for i in range(4):
t.forward(100)
t.left(90)
t.end_fill()
#Make Circle
t.forward(50)
t.fillcolor('red')
t.begin_fill()
t.circle(50)
t.end_fill()
Answer:
Yahoo Messenger is an example of a service on the Internet.