Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what is the error in this code Debug Stop 4 Run Share Save {} Beautify Language Python 3 main.py Download Code 1 print('WELCOME TO LOAN

what is the error in this code image text in transcribed

Debug Stop 4 Run Share Save {} Beautify Language Python 3 main.py Download Code 1 print('WELCOME TO LOAN PAYMENT CALCULATOR') 2 mortgagePrincipal=eval(input('Enter the principal value (RM): ')) 3 monthlyInterest=eval(input('Enter the interest rate in % : ')) period=eval(input('Enter the period of loan in year: ')) 5 P=mortgagePrincipal 6 I=monthlyInterest/1200 #divided by 100 for decimal and 12 for monthly payment per year 7 N=period*12 #year times 12 monthly payment 8 print("You want to borrow RM {} over {} years with an interest rate of {} %!").format(mortgagePrincipal, period, monthlyInter monthlyPayment=sum=int(P((I*(1+1)**N)/((1+1)**N) -1) #formula to get monthly payment 10 print("The monthly payment is RM %3.2f"%monthlyPayment) 11 print("Press any key to continue...") 9 input print ("The monthly payment is RM $3.2f"&monthlyPayment) SyntaxError: invalid syntax ... Program finished with exit code 1 Press ENTER to exit console

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions