Answer:
If a museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.
- On Tuesday and Thursday children 10 and under get in free ($ 0).
- For all other days and ages the cost is ten dollars ($ 10).
The code in python is;
if (day == 'Tuesday' or day == 'Thursday') and age <= 10:
price = 0
else:
price = 10
Explanation:
The logic of the algorithm suggests that that the conditional if-statement assigns zero to the price variable if the day variable is either Tuesday or Thursday and the child's age is 10 or below but assigns 10 to the price variable if the condition is not met.
Answer:
Explanation:
There are two reasons, first, the operating system could be blocked because a program with poorly written user program does not allow for enough stack space.
Second, the kernel can leave data in the user memory of a program, and this data can be used for another user to get another delicate information.
Answer:
C. an authorization of a registered stockholder to another person to act in their place at the meeting
Explanation:
- The proxy server acts as a gateway between you and the Internet.
- it is a Intermediate Server separates users from browsing websites
- Therefore, the proxy here refers to allowing someone to act on their behalf. In the case of the company, the proxy allows another person to act on behalf of the registered stockholder at company meetings.
Answer:
comma
Explanation:
The for loop is used to execute the specific statement again and again until the condition is false.
The syntax:
for(initialization;condition;increment/decrement)
{
statement;
}
In the initialization, we an initialize more than one variable by using the 'comma' as separator.
similarly for condition and increment/decrement part as well.
for example:
for(int x = 0,y = 0;x<5,y<5;x++,y++)
{
statement;
}
we can used as many as possible by using comma