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_va lue, new_currency_va lue, result_of_formu la;
//questions to ask user
cout<< "Please enter the value of the old currency you wish to
convert";
cin >old_currency_v alue;
//conversion implementation
new_currency_va lue = old_currency_va lue/10000;
cout << "The value of the new currency is " << new_currency_va lue <<
endl;
//quit programme
return 0;
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_va lue, new_currency_va lue, result_of_formu la;
//questions to ask user
cout<< "Please enter the value of the old currency you wish to
convert";
cin >old_currency_v alue;
//conversion implementation
new_currency_va lue = old_currency_va lue/10000;
cout << "The value of the new currency is " << new_currency_va lue <<
endl;
//quit programme
return 0;
Comment