ive created this currency interest preogram which should calculate the interest depending on the currency amount entered.
if 100 but less than 1000 then 1%, otherwise 3% for all other amounts.
can someone give me any ideas as how to start the interest part of the program off, and which variables i might need to declare in order to caslculate the interest.
ive done the first part where it asks the user for what amount to be converted to which currency.
any help appreciated coding shown below
#include <iostream.h>
int main()
{
int gbp;
int usd;
int euro;
int select = 0;
cout << "Please select from the following: " << endl;
cout << "1) Pounds to US doller" << endl;
cout << "2) Pounds to Euro" << endl << endl;
cout << "Enter: ";
cin >> select;
if (select == 1)
{
cout << " Enter amount in Pounds to convert to Dollers: ";
cin >> gbp;
usd = (gbp*1.5);
cout << "Equivalent in Dollers is: " << usd << endl;
}
else if (select == 2)
{
cout <<" Enter amount in Pounds to convert to Euro: ";
cin >> gbp;
euro = (gbp*1.6);
cout << "Equivalent in euros is: " << euro << endl;
}
else
cout << "Valid options 1 or 2." << endl;
return 0;
}