Question & Answer: Please help with how to format and solve this question……

1. In script mode, write a Python program that converts currency from U.S. dollars to Turkish lira. The curent exchange rate (as of Jan 30, 2017) is 1 USD 3.79438 TRY. Example of what your program might look like when you run it (the underlined parts indicate what you type in as the program is running): [20 pts] Enter the amount of U.S. money in dollars: 243.75 You have 924.880125 lira to spend in Turkey! Hints: Your program needs to start by allowing you to enter the amount of U.S. money. Use the input command for this, and treat the data as the float type. Once you have the amount of U.S. money stored into a variable, the progran needs to convert that amount into TRY and display the result.

Please help with how to format and solve this question.

1. In script mode, write a Python program that converts currency from U.S. dollars to Turkish lira. The curent exchange rate (as of Jan 30, 2017) is 1 USD 3.79438 TRY. Example of what your program might look like when you run it (the underlined parts indicate what you type in as the program is running): [20 pts] Enter the amount of U.S. money in dollars: 243.75 You have 924.880125 lira to spend in Turkey! Hints: Your program needs to start by allowing you to enter the amount of U.S. money. Use the input command for this, and treat the data as the float type. Once you have the amount of U.S. money stored into a variable, the progran needs to convert that amount into TRY and display the result.

Expert Answer

 

Program:(note: # indicates comments)

x=float(input(“Enter the amount of US money in Dollars”))
#prompts to Enter the amount of US money in Dollars
#float function converts the given input to float and is assigned to x
y=x*3.79438
#multiply x with 3.79438 to convert it to lira
print (“you have “+str(y)+” lira to spend in turkey”)
#prints the required output

Screenshot of Program:

Sample output:

Still stressed from student homework?
Get quality assistance from academic writers!