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...
-
Two C10 Ã 20 channels are welded to a 10 Ã 35 rolled S section as shown. Determine the moments of inertia and the radii of gyration of the combined section with respect to its...
-
Core Company is considering the purchase of a new machine to replace a machine that was purchased several years ago. Selected information on the two machines is given below: Original cost when new...
-
As a customer, think back to a recent sales presentation that you felt went well. What made it good? What did the salesperson do (or not do) that most impressed you? Did you buy the product or...
-
Barbara Flynn sells papers at a newspaper stand for $.35. The papers cost her $.25, giving her a $.10 profit on each one she sells. From past experience Barbara knows that: (a) 20% of the time she...
-
PROBLEM 2-25 Calculating Ending Inventories and Cost of Goods Sold LO2-5 Expedition Company worked on five jobs during May: Jobs A10, B20, C30, D40, and E50. At the end of May, the job cost sheets...
-
corporation is resisting the personal holding company tax, but the Tax Court sides with the IRS. Within 90 days after the adverse decision, one shareholder transfers his stock and $10,000 in cash to...
-
Explore the phenomena that led to the creation of Peter Pan and Alice in Wonderland. Identify a real-life case of a sufferer of one of these syndromes. Additionally, you along with your peers will...
-
How do brands develop social intelligence systems?
-
How is A/B testing used to assess the costs and value of social media tactics?
-
Explain the concept of purchase pals. Do you pull your offline and online purchase pals from the same pool of friends and family, or are they different somehow?
-
How do you do a bitwise copy of one structure variable to another?
-
Imagine you are planning an upcoming campaign for a local coffee shop. Create a content strategy document.
-
Morgan Contreras is trying to determine the amount to set aside so that he will have enough money on hand in 3 years to overhaul the engine on his vintage used car. While there is some uncertainty...
-
If a process has a six-sigma capability, what is the process capability index? a. 1 b. 2 c. 6 d. 12
-
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...
-
Donna Corporation manufactures custom cabinets for kitchens. It uses a normalcosting system with two direct-cost categoriesdirect materials and direct manufacturing laborand one indirect-cost pool,...
-
Donna Corporation manufactures custom cabinets for kitchens. It uses a normalcosting system with two direct-cost categoriesdirect materials and direct manufacturing laborand one indirect-cost pool,...
-
Donna Corporation manufactures custom cabinets for kitchens. It uses a normalcosting system with two direct-cost categoriesdirect materials and direct manufacturing laborand one indirect-cost pool,...
Study smarter with the SolutionInn App