Question: Using Python*** Write a program that takes the following exchange rates as in put: - rd as rate between EURO and US DOLLAR (USD) -

Using Python***Using Python*** Write a program that takes the following exchange rates as

Write a program that takes the following exchange rates as in put: - rd as rate between EURO and US DOLLAR (USD) - rp as rate between EURO and BRITISH POUND (GBP) The function should print the sentence: "1 Euro is equal to ... USD and ... GBP.". Fill "..." with the function parameter values ra and rp. Round to the third decimal place. Part 2: Conversion table Print the following table for EURO values from 1 to 10 . The table should be well formatted and aligned (using the tab delimiter). The values in US DOLLARS and BRITISH POUND should use the conversion rates inputted by the user. Use a loop. Round the value displayed in the table to the third decimal place. Part 3: Conversion function Expand the function in Part 1, so that it can convert any value in Euro, to the equivalent in USD or GBP. The function should therefore take in four parameters, i.e. rp, rd, Euro value and an indicator whether the user wants to convert to USD or GBP. Use the strings "USD" and "GBP" as indicator values. Return the value rounded to the third decimal place, or " n/a if a currency other than USD and GBP is requested. For example

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!