I'm new to c++, and I have to write a program to convert a monetary amount from one country's currency to another country's currency. The three currencies to be used are dollars, deutsche marks, and francs.
In the program I have to prompt the user to continue with another conversion when the programs finished, or quit. My first question is to do this will I have to use a loop, or something else?
Also I need to know basically how I need to approach this program. I have to first prompt the user on which currency they want to convert from, and then what currency they want to convert to. The only way I see to do it is with a if then statement for all of it, but I don't see any way to keep the program from having to be a mile long to include all the conversion formula's.
I would imagine I would have to definine the conversions in one part of the program, but I have no idea what kind of statements I'd use to do this. If someone could tell me or point me in the direction of a program similiar to the one I need to write, it would be much apreciated.
Thanks in advance,