Answer:
CGI
Explanation:
Green screen si best suited for Computer Generated Images ( CGI).
Answer:
The algorithm is as follows:
1. Start
2. Input num
3. num = num + 5
4. num = 2 * num
5. num = num - 7
6. Print num
7. Stop
Explanation:
The first and the last line of the algorithm starts and ends the algorithm
Line 2 gets user input;
Assume user input is 9
num = 9
Line 3: adds 5 to the inputted number
num = 9 + 5 = 14
Line 4 doubles the result of line 3
num = 2 * 14 = 28
Line 5 subtracts 7 from the result of 4
num = 28 - 7 = 21
Line 6 prints the output to the screen
Hence, the output of the algorithm is 21 if the user input is 9
Answer:
#include <stdio.h>
int main() {
const int NUM_VALS = 4;
int origList[NUM_VALS];
int offsetAmount[NUM_VALS];
int i;
origList[0] = 40;
origList[1] = 50;
origList[2] = 60;
origList[3] = 70;
offsetAmount[0] = 4;
offsetAmount[1] = 6;
offsetAmount[2] = 2;
offsetAmount[3] = 8;
for (i = 0; i < NUM_VALS; ++i) {
printf("%d ", origList[i] - offsetAmount[i]);
}
printf("\n");
return 0;
}
Explanation:
- After writing all the code given in the question, run a for loop until the variable i is less than the value of NUM_VALS constant.
- In other words, the for loop will be executed 4 times as the value of NUM_VALS constant is equal to 4.
- Inside the for loop display the results by subtracting offsetAmount from origList.
Answer:
"In inner for loop" is printed twice.
Answer: C. 2
Explanation:
Code:
int main()
{
int limit = 0;
for (int i =0; i>=limit; i-=2) {
for (int j = i; j <= 1; ++j){
cout << "In inner for loop" << endl;
}
cout << "In outer for loop" << endl;
}
return 0;
}
Output:
In inner for loop
In inner for loop
In outer for loop
I believe it would be "Use the context to find a synonym for terminating." (Also next time try posting in the English section :) )