Answer:
for (i = 0; datasamples[i] < NUM_POINTS ; ++i) {
if(datasamples[i] < minVal) {
datasamples[i] = datasamples[i] * 2;
}
}
Explanation:
In this particular problem, we are trying to look at each value in the datasamples array, and double it. This calls for the use of an index variable.
The index variable will keep track of the position within the array as we move from left to right. Starting on the left, at index 0, we will move right until we are at the end of the array.
++i takes care of incrementing the index variable each time the loop runs. This is what moves through the array.
The termination condition checks whether if we have iterates all values in the array. Once you've gone past all the values in the array the index variable is pointing all the way at the end.
As soon as the termination condition is false the loop will stop executing. So we will want to run your code while i (the index variable) is less than the size of the array (datasamples.length).
Once you've figured out the for loop bounds, simply check your conditional with an if-then statement before updating the values:
Answer:
The cost of opportunity is 4 pancakes.
Explanation:
The cost of opportunity is by definition the amount of things you don't do or buy, because of choosing doing or buying something else. In this case, Maria can make:
This means that at every moment, she can choose to make or 8 pancakes or 2 waffles, but not both. If we continue with this logic, in the time she could make 1 waffle, she could have chosen to make 4 pancakes. This is her cost of opportunity.
Answer:
a. 9.64%
b. 7.71%
Explanation:
For this question, we use the RATE formula that is shown in attachment
Given that,
Present value = $960
Future value or Face value = $1,000
PMT = $90
NPER = 10 years
The formula is shown below:
= Rate(NPER;PMT;-PV;FV;type)
The present value come in negative
So, after solving this,
a. The pretax cost of debt is 9.64%
b. And, the after tax cost of debt would be
= Pretax cost of debt × ( 1 - tax rate)
= 9.64% × ( 1 - 0.20)
= 7.71%
Answer: Decrease
Explanation:
From the question, we are informed that my parents have promised to give me $8,000 when I graduate with an undergraduate business degree and they think I should be able to graduate four years from now.
The present value of this gift will reduce if I delay the graduation by one year and graduate five years from now. It should be noted that the present value is simply sum of money which has to be invested to have a particular future goal and in this case since the time has increased, the present value of the gift will reduce.
Answer:
The consolidated net income is $ 336,900.
Explanation:
Dane’s income from own operations = $216,000
Carlton’s income = $98,500
Eliminate intra-entity interest income = $(22,860)
Eliminate intra-entity interest expense = $23,760
Recognize retirement gain on debt = $230,000 - $208,500
= $21,500
Consolidated net income = $216,000 + $98,500 - $22,860 + $23,760 + $21,500 = $ 336,900
Therefore, The consolidated net income is $ 336,900.