Question: use python format and follow the instructions(green word) please if it's ok, please include comment as well, thank you Page of 4 ZOOM Reverse Objectives:

 use python format and follow the instructions(green word) please if it's

ok, please include comment as well, thank you Page of 4 ZOOM

Reverse Objectives: . Practice formatted output. You are asked to write a

use python format and follow the instructions(green word) please

if it's ok, please include comment as well, thank you

Page of 4 ZOOM Reverse Objectives: . Practice formatted output. You are asked to write a program to compute future value of an investment and report investment outcome. Monetary amount in the report should follow standard currency notation; that is, thousands separators and rounding to cents. You are to define a function named get_inputs to obtain investment amount, interest rate and investment years from users and return three numbers, one for each user Input: der get inputs(): Next, define another function named compute_future_value that has three parameters -(1) principal, (2) annual interest rate (in percentage), (3) time, in years, and returns future value, compounded annually def compute_future_value ip, I, t): Then, define the third function named do_report that has four parameters - (1) principal, (2) annual interest rate (in percentage), (3) time, in years (4) future value at the designated interest rate, and reports investment outcome in which monetary amount follows standard currency notation; i.e., thousands separators and rounding to cents: def do_repertip, I, t, Ev): define the main function of the program. In the main, you'll call the above defined You then proceed three functions. Finally, don't forget to make the program run by invoking theme in function with the following statement 10 -- "main": main() An example interactive session is illustrated as follows where users' inputs are underlined: Please enter starting value: 1000 Enter annual interest rate (%): 3 Enter investment period (in years): 15 $1000.00 compounded annually over 15 years 3.0% interest rate yields a future value = $1,557.97 Page of 4 ZOOM # Compute future value of an investment and report investment outcome. # Monetary amount in the report should follow standard currency notation; # that is, thousands separators and rounding to cents def main(): # get starting prinicipal principal, rate, years = get_inputs() #calculate the future value future compute future_value(principal, rate, years) #display the result with standard currency notation do_report principal, rate, years, future) def get_inputs(): Obtain investment amount interest rate and investment years from user Return: three numbers, one for each user input principal = float(input("Please enter starting value: ")) rate = float(input("Enter annual interest rate (%): ")) years - int(input("Enter investment period (in years): ")) retum (principal, rate, years) del compute future valuep. r. 1): Compute future value, compounded annually Parameters: P-principal s-annual interest rate (in percentage) t-time, in years Page of 4 ZOOM Return: future value, compounded annually fv =p (1 + r/100)" return tv #replace the dummy implementation with yours def do_report p, r, t, fv): Raport investment outcome in which monetary amount follows standard currency notation, le.., thousands separators and rounding to cents Parameters p-principal - annual interest rate (in percentage) t-time, in years fv - future value at that interest rate #TODO: Implement desired pretty print pass #Call the main function to execute the program if_name__ == "_main_" main() an example interactive session: Please enter starting value: 1000 Enter annual interest rate (%): 3.7 Enter investment period (in years): 10 $1000.00 compounded annually over 10 years 3.7% interest rate yields a future value = $1,438.09 Notice that the main function is mainly to run your test cases you design

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!