Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me code the following. Let me know if you have any questions: Code a Python program that uses a graphical user interface (GUI)

Please help me code the following. Let me know if you have any questions:

Code a Python program that uses a graphical user interface (GUI) to facilitate exchange rate conversions. The program will begin by reading the most up-to-date exchange rates from a CSV file called exchange_rates.csv. (Link at end) For the purposes of this code, you may assume that you are converting from one or more foreign currencies into United States Dollars (USD). The exchange_rates.csv file consists of two columns. The first column contains the name of a foreign currency. Four major foreign currencies are included: British Pound Sterling (GBP), Euros (EUR), Canadian Dollars (CAD), and Japanese Yen (JPY). You may assume that these are the only four currencies that you need to handle. The second column contains the exchange rate from a given currency to USD. For example, the value for GBP is

1.3796482. Therefore, 1 GBP is worth 1.3796482 USD, or 2 GBP is worth 2.7592964 USD, etc. An example exchange_rates.csv file is provided alongside the assignment and is also copied below. Please only treat this file as an example; exchange rates are updated frequently, so your code should work with any CSV file of this format named exchange_rates.csv.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
GBP 1.3796482 EUR 1.1881021 CAD 0.7923385 JPY 0.0090999Exchange rate calculator GBP: EUR: Convert currency CAD: JPY: Close converterExchange rate calculator X GBP: EUR: 2 Convert currency CAD: 3 JPY: Close converterComplete! X Conversion report was written to conversion.csv. OKCurrency Quantity Total GBP 1 1.3796482 EUR 2 2.3762042 CAD 3 2.3770155 JPY 4 0.0363996 Total 6.1692675Warning! X Sorry, the report could not be written. Check that only numeric values were entered. OKExchange rate calculator GBP: FUR: Convert currency CAD: JPY: Close converter\f

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Programming questions