Re: write small currency converter
"mereba" <jojoo.imbeah@gmail.com> wrote in message
news:1183459708.587981.228340@m36g2000hse.googlegroups.com...
On Jul 3, 10:30 am, "Jim Langston" <tazmas...@rocketmail.com> wrote:
"mereba" <jojoo.imb...@gmail.com> wrote in message
news:1183458511.013010.186940@m36g2000hse.googlegroups.com...
Hello
My country Ghana is changing its currency. I want to write a small
programme in C++ that can covert from the old currency into the new
one. I would like this programme to run behind a simple calculator-
looking interface. I'm quite new to C++, and I would need some help.
Please any suggestion is welcome :)
The following is what I have been able to do so far:
#include <iostream>
using namespace std;
int main(){
//variables declared
int old_currency_value, new_currency_value, result_of_formula;
//questions to ask user
cout<< "Please enter the value of the old currency you wish to
convert";
cin >> old_currency_value;
//conversion implementation
new_currency_value = old_currency_value/10000;
cout << "The value of the new currency is " << new_currency_value <<
endl;
//quit programme
return 0;
So what is your question?
Thanks for your quick response
1. How do I write a gui in C++ for this programme?
GUI is beyond the scope of this newsgroup, it is platform dependant. Ask in
a newsgroup dedicated to your OS/platform (alt.windows...etc.., alt.linux,
whatever).
2. Do you have any suggestions for enhancing this programme?
Write a GUI for it. Of course, you'll need to get information somewhere,
try in a newsgroup for your OS