Turn the image given into a function that can be imported into another program that will prompt the user to enter a number. Using While Loop the program should prompt the user for these 2 choices: 1...


Turn the image given into a function that can be imported into another program that will prompt the user to enter a number.


Using While Loop the program should prompt the user for these 2 choices:


1 Calculate Interest Rate
99 Quit


If 1 was selected, then the program should run the function to find interest rate. If 99 was selected, then the program exits.


while True:<br>p = float (input (

Extracted text: while True: p = float (input ("Enter the starting principal, 0 to quit: ")) if p <= 0:="" print="" ("program="" exiting="" ....")="" break="float" (input="" ("enter="" the="" annual="" interest="" rate:="" "))="" float="" (input("how="" many="" times="" per="" year="" is="" the="" interest="" compounded?="" "))="float" (input="" ("for="" how="" many="" years="" will="" the="" account="" earn="" interest?="" "))="" total="p" *="" (1="" +="" float="" (r="" 100)="" n)="" **="" interest="total" -p="" print="" ("at="" the="" end="" of="" {:.lf}="" years="" you="" will="" have="" $="" {:,.2f}="" with="" interest="" earned="" $="" {:.2f}".format(t,="" total,="" interest)}="" print="" ('')="" r="" t="" (n="" *="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here