Use separate while loops to calculate the balance of your


You want to invest $10,000 until your balance is at least $15,000. You have a choice between two banks to invest in. Bank A offers 13% interest, compouned yearly. Bank B offers 1% interest compouned monthly. Compouned yearly means the interest is calculated and deposited in the account just once per year, as opposed to monthly which is done 12 times per year.

Write a single script file for parts a and b.

A. Use separate while loops to calculate the balance of your investment in both banks. Keep track of the years/months it takes to reach the goal of $15000.

B. Use if statements to determine which bank is the better investment choice. The output of your script should be formatted as follows filling the blanks with the correct values. Dollar amounts should be precise to 2 decimal places:

Format:

Bank __ is the better choice.

Balance is $___._ after __ months.

Request for Solution File

Ask an Expert for Answer!!
Financial Management: Use separate while loops to calculate the balance of your
Reference No:- TGS02812624

Expected delivery within 24 Hours