Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume you receive a bonus at the end of every year. The bonus starts at HKD 1000 and increases by HKD10 every five years. The
Assume you receive a bonus at the end of every year. The bonus starts at HKD 1000 and increases by HKD10 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). Enter the number of years: 5 The present value is $4329. Enter the number of years: 6 The present value is $5083. Enter the number of years: 12 The present value is $8920. 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,..)ofthegeneraladditionterminaforloop,orembeddinganifstatementunderafor loop, or other for loop solutions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started