Question: Write a program in C++ that converts the currency TO and FROM euro using TWO functions. Eg: to_euro(double amount, string currency) // converts amount of

Write a program in C++ that converts the currency TO and FROM euro using TWO functions. Eg:

to_euro(double amount, string currency) // converts amount of money to euro from US dollar, Japanese yen, UK pound and chinese yuan

from_euro(double amount, string currency) // converts from euro to US dollar, Japanese yen etc...

In main() program write a loop write a loop that reads amount and currency each time around so the user can enter amounts such as 55 dollars, 3.28 yuan etc..

- convert the amount into euros - keep track of which is the smallest (euro) value and which is the largest value you have seen so far. - each time thrught the loop output the value entered. If its the smallest write : the smallest so far. If the largest write : the largest so far.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!