Question: this is the program that i wrote about a motor company that finances cars. the program asks the users to input a car price and

this is the program that i wrote about a motor company that finances cars. the program asks the users to input a car price and choose how many months they want to pay it off(24 or 36 months). now i want to translate the outputed data in to another language. so want to translate from english to arabic and spanish.

1.write a pseudocode for a program that allows users to translate text from english to one of the following two languages: spanish, and arabic. the user should be able to type the text in english then choose one of the two languages. the program should then display the translated sentence (in the selected language) along with the sentiement level of the english text. the program should also displays the length of the orginal english sentence and the length of the non english sentence.

--write the puthon program.

program:

#ask user to enter price of car

price = float(input("Enter Car Price: "))

#two payment plans paymentPlanOne = 24 paymentPlanTwo = 36

#interest rate air = .06 #ask user to enter payment price

plan = int(input("Choose a Payment Plan, 24 or 36 months?"))

#print(paymentPlan)

downPayment=price*.1

#initial balance initialBalance =(price - downPayment) + ((price - downPayment) * .06 * (plan/12))

payment = initialBalance/(plan) startingBalance=initialBalance #interestrate=.06 if plan==24: initialBalance=(price-downPayment)+(price-downPayment)*(0.06)*2 startingBalance=initialBalance payment= initialBalance/plan month=1 remainingInstallment= plan-1 print("%5s %5s %20.16s %20.7s %22.14s %23.21s"%("Month", "Year", "Starting Balance", "Payment", "Ending Balance", "Remaining Instalments")) elif plan==36: initialBalance=(price-downPayment)+(price-downPayment)*(0.06)*3 startingBalance=initialBalance payment= initialBalance/plan month=1 remainingInstallment= plan-1 #the .xx is the number of letters in the words for them to show print("%5s %5s %20.16s %20.7s %22.14s %23.21s"%("Month", "Year", "Starting Balance", "Payment", "Ending Balance", "Remaining Instalments")) else: print("Please enter a valid plan") x=1 while x<=plan: year=int(month/12)+1 endingBalance=int(startingBalance-payment) print ("%5d %5d %20.2f %20.5f %22.3f %23.0f" %(month, year, startingBalance, payment, endingBalance, remainingInstallment)) startingBalance=endingBalance month=month+1 remainingInstallment=remainingInstallment-1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!