Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Code. Define a function called currency_converter. This program prompts user to enter Dollar or Euro amount and then converts some amount of dollars into
C++ Code.
Define a function called currency_converter. This program prompts user to enter Dollar or Euro amount and then converts some amount of dollars into Euro or Euro into British pound, depending on a choice made by the user. The commands, all in lower-case, are: dtoe to convert Dollar to Euro or etop to convert Euro to Pound or end to end the program. The program must continue to prompt for and do the conversion until the user issues the command end. Invalid commands are flagged as such.
Define a function called currency_converter. This program prompts user to enter Dollar or Euro amount and then converts some amount of dollars into Euro or Euro into British pound, depending on a choice made by the user The commands, all in lower-case, are: dtoe to convert Dollar to Euro or etop to convert Euro to Pound or end to end the program. The program must continue to prompt for and do the conversion until the user issues the command end. Invalid commands are flagged as such. The formula to convert dolar to Euro and Euro to Pound is as follows euro 0.81* us dollar british pound-0.87* euro The program must include the following message 5 points Comments: your name Your class and section About the program as comment The dollar, euro, and pound readings are all float values. The program must also display an informational message as shown in the following interaction. The output of the program should exactly match the following. This program converts some amount of dollars into Euro or Some amount of Euro into British pound, depending on a choice made by the user. nter dtoe or etop or end dtoe nter Dollar nount: 100.00 100.0 US Dollar is 81.0 Euro Enter dtoe or etop or end erty Invalid option Enter dtoe or etop or end etop nter Euro Anount: 100,00 100,0 Euro is 87.0 Pound Enter dtoe or etop or end end
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