Assume you receive a bonus at the end of every year. The bonus starts at HKD...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Assume you receive a bonus at the end of every year. The bonus starts at HKD 1000 and increases by HKD 10 every five years. The annual interest rate is 5%. Write a Python program to calculate the present value of the stream of cash flow. 1) Let the user enter the number of years. 2) Use a for loop. 3) Round the answer to the nearest dollar. The screenshots below present three examples. Each screenshot corresponds to running the program once. The program should be capable of handling other user inputs (e.g., 46). Illustration: 1000 1.05¹ Follow the same submission requirement (.py file and screenshot) as before. Hint: You may consider various approaches: using// to alter the numerator (1000, 1010, 1020, 1030,...) of the general addition term in a for loop, or embedding an if statement under a for loop, or other for loop solutions. t 1000 1.05 1010 Lag T 1010 105 0 1020 Las 1826 1010 $9920 Enter the number of years: 5 The present value is $4329. 2 Enter the number of years: 6 The present value is $5083. Enter the number of years: 12 The present value is $8920. 5 6 10 11 12 $1000 $1000 $1000 $1000 $1000 $100 Sino siDIO $100 $1010 11000 11000 Assume you receive a bonus at the end of every year. The bonus starts at HKD 1000 and increases by HKD 10 every five years. The annual interest rate is 5%. Write a Python program to calculate the present value of the stream of cash flow. 1) Let the user enter the number of years. 2) Use a for loop. 3) Round the answer to the nearest dollar. The screenshots below present three examples. Each screenshot corresponds to running the program once. The program should be capable of handling other user inputs (e.g., 46). Illustration: 1000 1.05¹ Follow the same submission requirement (.py file and screenshot) as before. Hint: You may consider various approaches: using// to alter the numerator (1000, 1010, 1020, 1030,...) of the general addition term in a for loop, or embedding an if statement under a for loop, or other for loop solutions. t 1000 1.05 1010 Lag T 1010 105 0 1020 Las 1826 1010 $9920 Enter the number of years: 5 The present value is $4329. 2 Enter the number of years: 6 The present value is $5083. Enter the number of years: 12 The present value is $8920. 5 6 10 11 12 $1000 $1000 $1000 $1000 $1000 $100 Sino siDIO $100 $1010 11000 11000
Expert Answer:
Answer rating: 100% (QA)
You can calculate the present value of the stream of cash flows using a Python program To do this yo... View the full answer
Related Book For
Financial Reporting Financial Statement Analysis and Valuation
ISBN: 978-0324302950
6th edition
Authors: Clyde P. Stickney
Posted Date:
Students also viewed these programming questions
-
How to fetch the violation issues in privacy for digital E-commerce site hackers?
-
For each transaction, indicate in which journal it should be recorded. Sales Journal Cash Receipts Journal Purchases Journal Cash Payments Journal General Journal Returned products to a supplier....
-
1. a) Fill in the missing numbers in the inventory schedule using the weighted-average cost inventory valuation method. This company uses the perpetual inventory system. Do not enter dollar signs or...
-
i) Starbucks launched its prepaid (debit) Starbucks Card in November 2001. The card, which holds between $5 and $500 can be used at any Starbucks location. Suppose Starbucks management wants to study...
-
Describe how changes in the workforce have been impacting organizations, including organizations for which you have worked recently.
-
How do your Lens 1 views compare to those shown here? Do you see the same basic patterns for most of them (such as right-skewed distributions)?
-
Herbalife Ltd: has a subsidiary in Spain, Herbalife International Espafia, S.A., whose functional currency is the euro. Relevant translated data for the subsidiary appear below. Required a. Calculate...
-
Canine Kernels Company (CKC) manufactures two different types of dog chew toys A and B, sold in 1,000-count boxes) that are manufactured and assembled on three different workstations (W, X, and Y)...
-
The following labor standards have been established for aparticular product: Standard labor-hours per unit of output 8.3hours Standard labor rate $ 15.65 per hour The following datapertain to opera 2...
-
On 1st January 2019 the account receivable balance brought forward from the previous year totaled 140,900. During the year ended 31 December 2019, total sales amounted to 322,520 of which 85%...
-
Use the following Information from separate companies a through d. Net Income (Loss) Interest Expense Income Taxes a. $ 134,000 $ 65,660 $ 33,500 b. c. d. 128,600 113,900 137,100 39,866 46,296 30,753...
-
What traditionally "good" behavior can impede the adoption of an agile culture?
-
Ice Cool produces two different models of air conditioners. The activities, costs, and cost drivers associated with the production processes follow. Budgeted Activity Process Activity Assembly...
-
In a Pure Project Organization, what happens to project team members after a project is finished?
-
Most people find interviews very nerve-wracking. Being fully prepared for an interview can ease your fears, calm your nerves and is paramount to your success. In this discussion, you will practice...
-
A 8 . 3 2 m deep aquiarium has a glass observation window. The window is 2 . 5 6 m high by 4 . 7 m wide. If the bottom of the window is located 3 . 4 m above the bottom of the aquarium, how much...
-
Quote Panel Contract VIX INDEX Statistics Opt. Volume Last Bid Size Bid Ask Ask Size TBS Position 14.93 x Put/Call Volume Opt. Volume Change % Hist. Vol. Close % Opt. Implied Volatility % Opt. Imp....
-
If the jobs displayed in Table 18.24 are processed using the earliestdue-date rule, what would be the lateness of job C? TABLE 18.24 Processing Times and Due Dates for Five Jobs Job C D E...
-
A firm's income tax return shows taxes currently payable for Year 4 of $35,000. It reports deferred tax assets before any valuation allowance of $24,600 at the beginning of Year 4 and $27,200 at the...
-
The CAPM computes expected rates of return using the following model (described in the chapter): the role of each of the three components of this model. ElR
-
Exhibit 14.12 presents data from a recent year on market-to-book ratios, ROCE, the cost of equity capital, and price-earnings ratios for seven pharmaceutical companies. (Note that price-earnings...
-
Furniture Depot is a retail chain selling furniture and appliances. The firm has after-tax operating income of \($250\) million in the current year on revenues of \($5\) billion. The firm also has...
-
Compaq Computer has seen its stock price decline from \($45\) to \($24\) The firm is expected to reinvest 50% of its expected after-tax operating income of \($2\) billion in new investments, and...
-
Atlantic Cruise Lines operates cruise ships and is headquartered in Florida. The firm had \($100\) million in pretax operating income in the current year, of which it reinvested \($25\) million. The...
Study smarter with the SolutionInn App