CIS290 Programming Assignments Directions Convert the pseudocode for the assignm
ID: 3757481 • Letter: C
Question
CIS290 Programming Assignments Directions Convert the pseudocode for the assignment into python code. Remember variable names must be meaningful and you should use the correct data types for any conversions Assignment 6: Calculate Interest Write a program which will ask a user for a starting balance and annual interest rate for a savings accounts. The program will then provide the user a list of options to calculate the yearly, quarterly, monthly or daily interest rate. Depending on their selection, the program will then ask how projected balances would they like to see with interest included. For example, if they user selected monthly, and then enter "5" for projected balance, it would should them the balance for the next 5 months Ask user for starting balance(S) . Ask user for the annual interest rate(%) o Hint you will need to convert percentage to decimal before calculations Show menu options for user to choose how they would like to calculate interest projections with the following choices o 1. Yearly 2. Quarterly o 3. Monthly 4. Daily Convert the interest rate according to the user's selection o For example, if monthly is selected then the annual interest rate would need to be divided by 12 months Use a loop to calculate and print the new balance for the number of projections entered by the userExplanation / Answer
startBalance=float(input("Enter starting amount:"));
interestRate=float(input("Enter interest rate: "));
interestType=1;
while (interestType>=1 and interestType <=4):
print " Choose one interest projection: 1.Yearly 2.Quarterly 3.Monthly 4.Daily AnyOther number to quit "
interestType=int(input("Enter Your Choice: "));
if interestType == 1:
startBalance=startBalance*((100+interestRate)/100);#Formulae to calculate yearly projection
print startBalance;
elif interestType==2:
startBalance=startBalance*((100+(interestRate)/4)/100);#Formulae to calculate Quarterly projection
print startBalance;
elif interestType==3:
startBalance=startBalance*((100+(interestRate)/12)/100);#Formulae to calculate Monthly projection
print startBalance;
elif interestType==4:
startBalance=startBalance*((100+(interestRate)/365)/100);#Formulae to calculate Daily projection
print startBalance;
OUTPUT:-