ADDITIONAL REQUIREMENTS
Before you begin coding, google “dollars to euros” to get today’s conversion rate. Make note of
that rate, along with the date you recorded it, in a comment at the very top of your program.
Example:
#on July 1, 2020, one U.S. dollar was equal to .89 euros
CALCULATIONS
After you obtain the user’s input, use the following formulas to make your calculations:
• euros = dollars * (dollars-to-euros conversion rate you retrieved online)
• kilograms = pounds / 2.2
• tempF = tempC * 9 / 5 + 32
ITINERARY DISPLAY
• For the bullets you may use your emoji of choice (or even multiple different emojis). The
one shown in the sample is the globe with a code of U0001F30D.
• Format your euros and kilos to decimal places using :.2f. Here’s a sample of what that
will look like in your code:
Page
of 2
ZOOM
+
Write a program to help a U.S. traveler navigate the basic ins and outs of Europe. Your program should convert 1) dollars to euros, 2) pounds to kilograms, and 3) degrees Fahrenheit to Celsius.
Here is the expected program output/behavior. Sample user input is highlighted yellow:
How many U.S. dollars can you afford to spend on your trip?: 100.00 How many pounds of chocolate will you be buying?: 5
15
ITINERARY NOTES
You have 89.00 euros to spend. @ Plan to buy 2.27kg of chocolate for family and friends.
Bon voyage!
Your program will prompt the user for dollars to spend, pounds of chocolate to buy, and the temperature in degrees Celsius. You will have to create appropriately named variables to receive those values with input(), as well as another set of variables to hold the converted values in euros, kilograms, and degrees Fahrenheit. Note that the values highlighted in yellow above are just sample input values. Your program should work with any values the user types in.
IMPORTANT: Recall that all input comes into your program as string/text data. In order to be able to do math with the users input values, we must convert them to floats as they come in. Example:
dollars = float(input())
Your program will convert dollars to euros, pounds to kilograms, and degrees Celsius to degrees Fahrenheit. Lastly, it will display a bulleted list of itinerary notes.