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.
Finding and fixing a problem
Answer:
He will temporarily have less money in his bank account.
Explanation:
Philip will have less money in his bank account at this time because he is considering modifying his motorcycle that costs approx $600, but his bike older and he also understands that he required a new bike in the next two years.
So, he decided to make an analysis table according to his choice and after that, he examines that if he tailored his bike at this time then he has a shortage of money at the time of purchasing a new bike.
Answer:
B. Crashing is not possible unless there are multiple critical tasks.