The correct answer for the for loop is:
for (int i=1; i<200; i++){
if ((i%2)==0 && (i%3)==0){
cout << i << " ";
}
}
Python offers three options for running the loops. For iterating repeatedly through a sequence, use a for loop (that is either a list, a tuple, a dictionary, a set, or a string). This functions more like an iterator method seen in other object-oriented programming languages and is less like the for keyword found in other programming languages. The for loop allows us to run a series of instructions once for each element of a list, tuple, set, etc. There is no need to set an indexing variable before using the for loop.
Write a for loop that prints, in ascending order, all the positive integers less than 200 that are divisible by both 2 and 3, separated by spaces.
Learn more about loops here:
brainly.com/question/25955539
#SPJ4
Answer:
Terminal value
= 500(1+0.12)3 + 500(1+0.12)2 + 500(1+0.12)1+ 500(1+0.12)0
= 500(1.12)3 + 500(1.12)2 + 500(1.12)1 + 500(1.12)0
= 702.464 + 627.2 + 560 + 500
= $2,389.66
The correct answer is E
Explanation:
Terminal value is a function of number of years cashflow for each year can be re-invested at the appropriate discount rate. The cashflow for year 1 can be re-invested for 3 years since the life of the project is 4 years. cashflow for year 2 can be re-invested for 2 years, cashflow for year 3 can be re-invested for 1 year and cashflow for year 4 can be re-invested for 0 year.
Answer:
$230,000
Explanation:
Given that,
Days sales outstanding, DSO = 23 days
Annual sales = $3,650,000
Assume that it uses a 365 day year
Accounts receivable = (Annual sales × Days sales outstanding) ÷ 365 days
= ($3,650,000 × 23) ÷ 365 days
= $83,950,000 ÷ 365 days
= $230,000
Therefore, the Baxley Brothers has $230,000 balance in its accounts receivable.
Answer:
Check the explanation
Explanation:
The price of the original asset is the same amount as the expected future price which are being discounted at the risk-free rate.
Price of Customized Derivative= Probability of return>0.2%*Pay off+ Probability of Return<0.2%*Payoff/(1+r)^T
= 0.5*$4000000+0.5*$1000000/(1+0.002)^1
=2000000+500000/1.002
=2000000+499001.99
$2499001.99