Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python: also define and invoke main Write a program that will print out a conversion table for dollars and another currency. The currency you

In Python: also define and invoke main

image text in transcribed

Write a program that will print out a conversion table for dollars and another currency. The currency you should use is based on the first letter of your first name If your name begins with... Use the currency: $1 is worth 51.08 Afghan Afghani (AFN) Bangladeshi Taka (BDT) 80.58 Costa Rican Colon (CRC) 499.38 Danish Krone (DKK) Euro (EUR) Falkland Island Pound (FKP) 0.62 Guatemalan Quetzal (GTQ) 0.13 Hungarian Forint (HUF) 0.00456 Indonesian Rupiah (IDR) 9639.99 Japanese Yen (JPY) Kenyan Shilling (KES) Lebanese Pound (LPP) 0.000664 Moroccan Dirham (MAD) 0.118 Nepalese Rupee (NPR) 0.0115 Omani Rial (OMR) Polish Zloty Qatari Riyal (QAR) Russian Ruble (RUB) Somali Shilling (SO5) Thai Baht (THB) Ukrainian Hryvna (UAH) 8.10 Venezuelan Bolivar VEH) 4.30 Samoan Tala (WST) East Caribbean Dollar (XCD) 2.70 Yemeni Rial (YER) Zimbabwean Dollar (ZWD) 361.90 5.67 0.77 83.85 0.0116 0.384 3.11 0 275 30.80 0 00061 30.59 2.27 0.00477 For example, if your first name is Eric, you would use Euros. From the table above, we have that one dollar is worth 0.77 euros. You should begin the program by printing out your name. On each line your program should write the number of dollars and the corresponding number of your currency. For example Eric's converting program Dollars: Euros 0.77 1.53 3.07 3.84

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago