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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started