Question: Please write the code in C. Thank you! (Do not upload irrelevant answers, uploading irrelevant content will not be praised.) Write a program that takes

Please write the code in C. Thank you!
(Do not upload irrelevant answers, uploading irrelevant content will not be praised.)
Write a program that takes the following exchange rates as input: - ra 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 l, 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: Answer: (penalty regime: 10,20,% ) \begin{tabular}{l|l} 1 & def print_rates (,): \\ 2 & \\ 3 & \\ 4 & def conversion_table (,): \\ 5 & print("Euro \ tUSD \ tGBP") \\ 6 & \\ 7 & \\ 8 & def convert_euro (): \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
