Answer:
Hi there Kaylee! The answers to the blanks are as follow:
1.The character escape sequence to force the cursor to go to the next line is \n
2. The character escape sequence to force the cursor to advance forward to the next tab setting is \t
3.The character escape sequence to represent a single quote \'
4.The character escape sequence to represent a double quote is \"
5.The character escape sequence to represent a backslash is \\
Explanation:
Character escape sequences are used for processing of special characters that may otherwise be used in a context where those characters are reserved as keywords or carry other symbolic reference. If these are not escaped, the output will not be correct.
Answer:
Given
The above lines of code
Required
Rearrange.
The code is re-arrange d as follows;.
#include<iostream>
int main()
{
int userNum;
scanf("%d", &userNum);
if (userNum > 0)
{
printf("Positive.\n");
}
else
{
printf("Non-positive, converting to 1.\n");
userNum = 1;
printf("Final: %d\n", userNum);
}
return 0;
}
When rearranging lines of codes. one has to be mindful of the programming language, the syntax of the language and control structures in the code;
One should take note of the variable declarations and usage
See attachment for .cpp file
Answer: Flag
Explanation:
When using an application control solution, it should be noted that the application whitelist is typically centrally defined which is applied to the network devices. In such case, the applications that are contained in the whitelist will be the only one that are allowed.
Therefore, the applications that are not contained in the whitelist should be flagged. This is necessary in order to effectively monitor the user traffic for a period of time in order to discover user behaviors.
<u>Input
:</u>
*Processing*
<u>
Output
:</u>
An array full of numbers which is terminated by 0.
<u>
Algorithm:
</u>
1. **Start
2. **Take an array, max, and min as variables.
3. **Get the numbers from the user.
4. **Initialize the max and min variables as a[0].
5. **Now, check if max>a[i]. If true, reinitialize max=a[i].
6. **Check if min<a[i]. If true, reinitialize min=a[i].
7. **Print max and min.
8. **Stop