Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) In python. Exchange Rates?The text file Exchrate.txt gives information about the currencies of the world. The first eight lines of the file are as

1) In python. Exchange Rates?The text file Exchrate.txt gives information about the currencies of the world. The first eight lines of the file are as follows:

USD,US Dollar,1

AED,Emirati Dirham,3.6725

AFN,Afghan Afghani,69.25111343

ALL,Albanian Lek,105.7249985

AMD,Armenian Dram,480.0599977

ANG,Dutch Guilder,1.782500028

AOA,Angolan Kwanza,214.552661

ARS,Argentine Peso,20.1159376

AUD,Australian Dollar,1.303081797

Each line of the file gives the code a country currency, the name of its currency, and the number of units of the currency that were equal to one American dollar (called the exchange rate4). For instance, one American dollar is equal to 3.6725 Emirati Dirhams. Use the text file Exchrate.txt in parts (a), (b), and (c).

4The text file gives the exchange rates in March 2018.

b. Write a python program that displays the names of the countries in ascending order determined by the number of units that can be purchased for one American dollar.

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

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions