Answer:
184
Explanation:
Given the codes
- int cost = 82;
-
- if (cost < 100)
- {
- cost = cost + 10;
- }
-
- if (cost > 50)
- {
- cost = cost * 2;
- }
-
- if (cost < 100)
- {
- cost = cost - 20;
- }
The initial value of cost is 82.
The if condition in Line 3 will pass and therefore cost = 82 + 10 = 92
The if condition in Line 8 will pass and therefore cost = 92 * 2 = 184
The if condition in Line 13 will fail l and therefore the if block will be skipped.
At last, the we get cost = 184.
The answer is C because he'll be able to search up the employees name then it will tell him all the information he needs along with their job profile
<span>A compiler executes each program statement as soon as it is translated.
</span>The statement that logic errors are easily identified when a program is compiled is false, because the compiler locates only syntax errors, but logic errors <span>can be
eliminated only through careful examination of your program. </span>
Logic
errors are usually more difficult to find and resolve than syntax
errors.