Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions