Question: Write a simple JES/Python function to create an app which allows the user to keep up to date with currency exchange rates with lists and
Write a simple JES/Python function to create an app which allows the user to keep up to date with currency exchange rates with lists and files against the dollar.
Your client wants a menu that has the following options: 1 load rates CSV file, xrates.csv 2 display rates 3 add new record country and rate 4 change a countrys exchange rate 5 Exit and safe all current data to xrates.csv sorted by Country
Each option must have its own general function with parameters and returns where necessary.
loadRates(..) Design this general function to read from xrates.csv and store in the appropriate lists.
displayCurrencies(..) This general function displays all the current currencies in easy to read format against 1 Australian dollar.
addNewCurrency(..) This general function allows the user to add a new currency against the Australian dollar.
changeCurrentRate(..) This general function allows the user to rate the current rate of a country aganst the Australian dollar.
saveData(..) Exit and stores all current data into xrates.csv sorted althabetically by country.

xrates.csv (Microsoft Excel)
| Argentine Peso | 11.50883 |
| Bahraini Dinar | 0.282741 |
| Botswana Pula | 7.981178 |
| Brazilian Real | 2.359366 |
| British Pound | 0.606136 |
| Bruneian Dollar | 1.05312 |
| Bulgarian Lev | 1.384963 |
| Canadian Dollar | 1.003923 |
| Chilean Peso | 492.1158 |
| Chinese Yuan Renminbi | 5.178222 |
| Colombian Peso | 2145.764 |
| Croatian Kuna | 5.24636 |
| Czech Koruna | 18.82243 |
| Danish Krone | 5.265635 |
| Emirati Dirham | 2.754693 |
| Euro | 0.708181 |
| Hong Kong Dollar | 5.826736 |
| Hungarian Forint | 219.5868 |
| Icelandic Krona | 84.52556 |
| Indian Rupee | 48.36032 |
| Indonesian Rupiah | 10006.23 |
| Iranian Rial | 24354.54 |
| Israeli Shekel | 2.738238 |
| Japanese Yen | 83.31431 |
| Kazakhstani Tenge | 234.7966 |
| Kuwaiti Dinar | 0.228924 |
| Latvian Lat | 0.49771 |
| Libyan Dinar | 1.068757 |
| Lithuanian Litas | 2.445207 |
| Malaysian Ringgit | 3.327397 |
| Mauritian Rupee | 26.55018 |
| Mexican Peso | 13.99794 |
| Nepalese Rupee | 77.81302 |
| New Zealand Dollar | 1.081244 |
| Norwegian Krone | 6.493566 |
| Omani Rial | 0.288377 |
| Pakistani Rupee | 78.58177 |
| Philippine Peso | 37.31275 |
| Polish Zloty | 2.990832 |
| Qatari Riyal | 2.730393 |
| Romanian New Leu | 3.206271 |
| Russian Ruble | 42.90029 |
| Saudi Arabian Riyal | 2.812669 |
| Singapore Dollar | 1.05312 |
| South African Rand | 10.31728 |
| South Korean Won | 853.3932 |
| Sri Lankan Rupee | 113.8583 |
| Swedish Krona | 6.803333 |
| Swiss Franc | 0.756868 |
| Taiwan New Dollar | 22.95615 |
| Thai Baht | 25.96892 |
| Trinidadian Dollar | 5.024283 |
| Turkish Lira | 2.797144 |
| US Dollar | 0.750005 |
| Venezuelan Bolivar | 7.4888 |
xrates.csv - LibreOffice Calc File Edit View Insert Format Tools Dat ABC Aria A1 = Argentine p Argentine Peso 2 Bahraini Dinar 11.508827 0.282741 7.981178 3 Botswana Pula
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
