Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Python program to compute investment and present value

Developandwrite complete full Python programs for each part, to perform the following tasks.(a)Write a Python programs to perform the following tasks.ï‚·Prompt a user forthe following pieces of information: othe initial value of an investment, investAmtothe expected growthrate of investment, iandothe number of years of investment, n.ï‚·Compute the expected investment amount, expInvestAmt, at the end of n years using the formula:𝑒𝑥𝑝𝐼𝑛𝑣𝑒𝑠𝑡𝐴𝑚𝑡=𝑖𝑛𝑣𝑒𝑠𝑡𝐴𝑚𝑡(1+𝑖100)𝑛Prompt the user forthe discount rate, d,The discount rate is used to  adjust the value of a future  amount of money to the present value.ï‚·Adjustthe expected investmentamount, expInvestAmtat year n,by the discount rate, dto today’s value (present value), adjAmtusing the formula:𝑎𝑑𝑗𝐴𝑚𝑡=𝑒𝑥𝑝𝐼𝑛𝑣𝑒𝑠𝑡𝐴𝑚𝑡(1+𝑑100)𝑦Display expInvestAmtand 𝑎𝑑𝑗𝐴𝑚𝑡,with 2 decimal digits.An example run is shown herewith user inputsshown underlined:Enter investment amount: 150000Enter the expected investment growth rate: 5Enter the discount rate: 7.5Enter number of years: 5Investment at end of year 5 is $191442.23 whichis worth $133350.74 today(3marks)(b)Make a copy of your program for Q1(a). Modifythe copytoadd checksto ensure thatthe investment amount isbetween 1000 and 200000, both rates arenot be negative, and year ispositive. Fourexample runs showthe result of various checks. User inputsare shownunderlined:Run 1Enter investment amount: 100Invalid investment amount. Amount should be between 1000 and 200000Run 2Enter investment amount: 1000Enter the expected investment growth rate: -1Enter the discount rate: 3Rates cannot be negativeRun3Enter investment amount: 1000Enter the expected investment growth rate: 4
ICT 133 Structured ProgrammingTutor-Marked AssignmentSINGAPORE UNIVERSITY OF SOCIAL SCIENCES (SUSS)Page 4of 14Enter the discount rate: 5Enter number of years: -2Year must be a positive numberRun 4Enter investment amount: 1000Enter the expected investment growth rate: 4Enter the discount rate: 5Enter number of years: 5Investment at end of year 5 is $1216.65 whichis worth $953.28 today(3marks)(c)Make a copy of your program for Q1(a). Modify the copy to display yearly value of the expected investment amount and adjusted amountfor year 0 to year 10.An example run is shown herewith user inputsshown underlined:Enter investment amount: 150000Enter the expected interest rate: 5Enter the discount rate: 6.5Year   Value at Year($) Today's worth($)0         150,000         150,0001         157,500          147,8872         165,375          145,8043         173,644          143,7514         182,326          141,7265         191,442          139,7306         201,014          137,7627         211,065          135,8228         221,618          133,9099         232,699          132,02310         244,334          130,163(5marks)(d)Define thefollowing functions:ï‚·The function getExpInvestAmthas 3 parameters: the initial investment amount, the  growth  rate and the  year. The  function  computes and  returns the  expected investment amount.ï‚·The function getPresentValuehas 3 parameters: a future amount, the discount rate and the year. The function computes and returns amountwhich represents the present value (today’s val

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close