Program 3: Give a baby $5,000! Did you know that, over the last century, the stock market has returned an average of 10%? You may not care, but you’d better pay attention to this one. If you were to give a newborn baby $5000, put that money in the stock market and NOT add any additional money per year, that money would grow to over $2.9 million by the time that baby is ready for retirement (67 years)! Don’t believe us? Check out the compound interest calculator from MoneyChimp and plug in the numbers!
To keep things simple, we’ll calculate interest in a simple way. You take the original amount (called the principle) and add back in a percentage rate of growth (called the interest rate) at the end of the year. For example, if we had $1,000 as our principle and had a 10% rate of growth, the next year we would have $1,100. The year after that, we would have $1,210 (or $1,100 plus 10% of $1,100). However, we usually add in additional money each year which, for simplicity, is included before calculating the interest.
Your task is to design (pseudocode) and implement (source) for a program that 1) reads in the principle, additional annual money, years to grow, and interest rate from the user, and 2) print out how much money they have each year. Task 3: think about when you earn the most money! Lesson learned: whether it’s your code or your money, save early and save often…
Sample run 1:
Enter the principle: 2000
Enter the annual addition: 300
Enter the number of years to grow: 10
Enter the interest rate as a percentage: 10
Year 0: $2000
Year 1: $2530
Year 2: $3113
Year 3: $3754.3
Year 4: $4459.73
Year 5: $5235.7
Year 6: $6089.27
Year 7: $7028.2
Year 8: $8061.02
Year 9: $9197.12
Year 10: $10446.8
Sample run 2 (yeah, that’s $9.4MM):
Enter the principle: 5000
Enter the annual addition: 1000
Enter the number of years to grow: 67
Enter the interest rate as a percentage: 10
Year 0: $5000
Year 1: $6600
Year 2: $8360
Year 3: $10296
Year 4: $12425.6
Year 5: $14768.2
.
.
Year 59: $4.41782e+06
Year 60: $4.86071e+06
Year 61: $5.34788e+06
Year 62: $5.88376e+06
Year 63: $6.47324e+06
Year 64: $7.12167e+06
Year 65: $7.83493e+06
Year 66: $8.61952e+06
Year 67: $9.48258e+06
////////////( PLEASE WRITE IN PSEUDOCODE )/////////////////
In: Computer Science
Program 3: Give a baby $5,000! Did you know that, over the last century, the stock market has returned an average of 10%? You may not care, but you’d better pay attention to this one. If you were to give a newborn baby $5000, put that money in the stock market and NOT add any additional money per year, that money would grow to over $2.9 million by the time that baby is ready for retirement (67 years)! Don’t believe us? Check out the compound interest calculator from MoneyChimp and plug in the numbers!
To keep things simple, we’ll calculate interest in a simple way. You take the original amount (called the principle) and add back in a percentage rate of growth (called the interest rate) at the end of the year. For example, if we had $1,000 as our principle and had a 10% rate of growth, the next year we would have $1,100. The year after that, we would have $1,210 (or $1,100 plus 10% of $1,100). However, we usually add in additional money each year which, for simplicity, is included before calculating the interest.
Your task is to design (pseudocode) and implement (source) for a program that 1) reads in the principle, additional annual money, years to grow, and interest rate from the user, and 2) print out how much money they have each year. Task 3: think about when you earn the most money!
Lesson learned: whether it’s your code or your money, save early and save often…
Sample run 1:
Enter the principle: 2000
Enter the annual addition: 300
Enter the number of years to grow: 10
Enter the interest rate as a percentage: 10
Year 0: $2000
Year 1: $2530
Year 2: $3113
Year 3: $3754.3
Year 4: $4459.73
Year 5: $5235.7
Year 6: $6089.27
Year 7: $7028.2
Year 8: $8061.02
Year 9: $9197.12
Year 10: $10446.8
Sample run 2 (yeah, that’s $9.4MM):
Enter the principle: 5000
Enter the annual addition: 1000
Enter the number of years to grow: 67
Enter the interest rate as a percentage: 10
Year 0: $5000
Year 1: $6600
Year 2: $8360
Year 3: $10296
Year 4: $12425.6
Year 5: $14768.2
.
.
Year 59: $4.41782e+06
Year 60: $4.86071e+06
Year 61: $5.34788e+06
Year 62: $5.88376e+06
Year 63: $6.47324e+06
Year 64: $7.12167e+06
Year 65: $7.83493e+06
Year 66: $8.61952e+06
Year 67: $9.48258e+06
In: Computer Science
: Give a baby $5,000! Did you know that, over the last century, the stock market has returned an average of 10%? You may not care, but you’d better pay attention to this one. If you were to give a newborn baby $5000, put that money in the stock market and NOT add any additional money per year, that money would grow to over $2.9 million by the time that baby is ready for retirement (67 years)! Don’t believe us? Check out the compound interest calculator from MoneyChimp and plug in the numbers!
To keep things simple, we’ll calculate interest in a simple way. You take the original amount (called the principle) and add back in a percentage rate of growth (called the interest rate) at the end of the year. For example, if we had $1,000 as our principle and had a 10% rate of growth, the next year we would have $1,100. The year after that, we would have $1,210 (or $1,100 plus 10% of $1,100). However, we usually add in additional money each year which, for simplicity, is included before calculating the interest.
Your task is to design (pseudocode) and implement (source) for a program that 1) reads in the principle, additional annual money, years to grow, and interest rate from the user, and 2) print out how much money they have each year. Task 3: think about when you earn the most money!
Lesson learned: whether it’s your code or your money, save early and save often…
Sample run 1:
Enter the principle: 2000
Enter the annual addition: 300
Enter the number of years to grow: 10
Enter the interest rate as a percentage: 10
Year 0: $2000
Year 1: $2530
Year 2: $3113
Year 3: $3754.3
Year 4: $4459.73
Year 5: $5235.7
Year 6: $6089.27
Year 7: $7028.2
Year 8: $8061.02
Year 9: $9197.12
Year 10: $10446.8
Sample run 2 (yeah, that’s $9.4MM):
Enter the principle: 5000
Enter the annual addition: 1000
Enter the number of years to grow: 67
Enter the interest rate as a percentage: 10
Year 0: $5000
Year 1: $6600
Year 2: $8360
Year 3: $10296
Year 4: $12425.6
Year 5: $14768.2
.
.
Year 59: $4.41782e+06
Year 60: $4.86071e+06
Year 61: $5.34788e+06
Year 62: $5.88376e+06
Year 63: $6.47324e+06
Year 64: $7.12167e+06
Year 65: $7.83493e+06
Year 66: $8.61952e+06
Year 67: $9.48258e+06
In: Computer Science
Use a 5 percent discount rate to compute the NPV of each of the following series of cash receipts and payments: Use Appendix A and Appendix B. $6,200 received now (year 0), $1,890 paid in year 3, and $4,000 paid in year 5. $10,000 paid now (year 0), $12,690 paid in year 2, and $31,000 received in year 8. $20,000 received now (year 0), $13,500 paid in year 5, and $7,500 paid in year 10.
In: Accounting
What would be the interest rate on a 10-year Treasury bond, given the following information? kpr = 2% MR = 0.1% for a 1-year loan, increasing by 0.1% each additional year. LR = 0.5% DR= 0 for a 1-year loan, 0.1% for a 2-year loan, increasing by 0.1% for each additional year. Expected inflation rates: Year 1 = 3.0% Year 2 = 4.0% Year 3 and thereafter: 5.0% 6.7% 9.1% 7.7% 8.9%
In: Finance
All years that are evenly divisible by 400 or are evenly divisible by four and not evenly divisible 100 are leap years. For example, since 1600 is evenly divisible by 400, the year 1600 was a leap year. Similarly, since 1988 is evenly divisible by four but not 100, the year 1988 was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines if the year is a leap year, and displays an appropriate message that tells the user whether the entered year is or is not a leap year.
In: Computer Science
1) You are considering an investment that will pay you $12,000 the first year, $13,000 the second year, $17,000 the third year, $19,000 the fourth year, $23,000 the fifth year, and $28,000 the sixth year (all payments are at the end of each year). What is the maximum you would be willing to pay for this investment if your opportunity cost is 11%?
Solve this question assuming that payments will be received at the beginning of each year rather than the end of each year. Please solve using Excel
In: Finance
Exact Photo Service purchased a new color printer at the
beginning of Year 1 for $39,700. The printer is expected to have a
four-year useful life and a $3,700 salvage value. The expected
print production is estimated at $1,770,500 pages. Actual print
production for the four years was as follows:
| Year 1 | 550,700 | ||
| Year 2 | 477,500 | ||
| Year 3 | 375,300 | ||
| Year 4 | 390,000 | ||
| Total | 1,793,500 | ||
The printer was sold at the end of Year 4 for $4,100.
b. Compute the depreciation expense for each of the four years, using units-of-production depreciation.
Depreciation Expense
Year 1
Year 2
Year 3
Year 4
Total accumulated depreciation$0
Exact Photo Service purchased a new color printer at the
beginning of Year 1 for $39,700. The printer is expected to have a
four-year useful life and a $3,700 salvage value. The expected
print production is estimated at $1,770,500 pages. Actual print
production for the four years was as follows:
| Year 1 | 550,700 | ||
| Year 2 | 477,500 | ||
| Year 3 | 375,300 | ||
| Year 4 | 390,000 | ||
| Total | 1,793,500 | ||
The printer was sold at the end of Year 4 for $4,100.
c. Calculate the amount of gain or loss from the sale of the asset under each of the depreciation methods.
DDB =
Units-of-production=
In: Accounting
Bay Properties is considering starting a commercial real estate division. It has prepared the following four-year forecast of free cash flows for this division:
|
Year 1 |
Year 2 |
Year 3 |
Year 4 |
|
|
Free cash flow |
−$124,000 |
$11,000 |
$98,000 |
$248,000 |
Assume cash flows after year 4 will grow at
3%
per year, forever. If the cost of capital for this division is
14%,
what is the continuation value in year 4 for cash flows after year 4? What is the value today of this division?
What is the continuation value in year 4 for cash flows after year 4?
The continuation value is
$nothing.
(Round to the nearest dollar.)
In: Finance
The monthly market basket for consumers consists of pizza, t-shirts, and rent.
The table below shows market basket quantities and prices for the base year (Year 1) and in the following two years.
|
Product |
Base Year (Year 1) Quantity |
Price in the Base Year |
Price in Year 2 |
Price in Year 3 |
|
Pizza |
10 |
$3.00 |
$3.75 |
$4.05 |
|
T-Shirts |
4 |
$25.00 |
$22.50 |
$26.25 |
|
Rent |
1 |
$400.00 |
$440.00 |
$520.00 |
The inflation rate between Year 1 and Year 2 is
nothing%.
(Round
both answers to one decimal
place.)
The inflation rate between Year 2 and Year 3 is
nothing%.
In: Economics