for year running from value of up through calculate principal principal ( aprcalculate xll year calculate height principal draw rectangle from (xll to (xll+ heightthe variable xll stands for lower left--the value of the lower left corner of the bar putting all of this together produces the detailed algorithm shown belowprint an introduction get value of principal and apr from user create graphwin titled ''investment growth chart'draw label kat ( draw label kat ( draw label kat ( draw label kat ( draw label " kat ( draw rectangle from ( to ( principal for year running from value of up through calculate principal principal ( aprcalculate xll year draw rectangle from (xll to (xll+ principal wait for user to press enter whewthat was lot of workbut we are finally ready to translate this algorithm into actual python code the translation is straightforward using objects from the graphics module here' the programfutval_graph py from graphics import def main()introduction print("this program plots the growth of -year investment "get principal and interest rate principal eval(input("enter the initial principal")apr eval(input("enter the annualized interest rate")create graphics window with labels on left edge win graphwin("investment growth chart" win setbackground("white"text(point( ) 'draw(win