Question: Code Python statements for Murach's Future Value calculation and shown in pseudocode below: Begin your program with a comment line having your name and our
Code Python statements for Murach's "Future Value" calculation and shown in pseudocode below: Begin your program with a comment line having your name and our course code. print a program title, "welcome to the Future value calculator", onca separate assign the value 'y' to a variable named choice, prepare an event-controlled loop that repeats while choice equals 'yo within the loop body assign to a variable named monthlyInvestment a float value from input for the amount to be invested each month assign to yearlyInterestRate a float value input for a yearly interest assign to years an int value input for number of years to invest assign to monthlyInterestRate the value of yearlyInterestRate divided by 12 then divided by 100 assign to months the value of years times 12 assign to futureValue the float value 0.00 assign to count the value 1 prepare a count-controlled loop that repeats while count is less than months increase futureValue by monthlyInvestment increment count by 1 assign to monthlyInterestAmount the value of monthlyInvestment times monthlyInterestRate increase futureValue by monthlyInterestAmount print the string "Future Value" and the amount accumulated in the variable futureValue rounded to 2 decimal places assign to a variable named choice the value input for the prompt string "continue? (y): Place these statements in a .py file for testing with Python IDLE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
