Code
Please look:
// Currency Convertor
// Jimmy Brancaccio
#include
using namespace std;
int reais, bolivares, dollars, money, country;
void input(int& money, int country){
cout << "Type 1 for Brazil and 2 for Venezuela" << endl;
cin >> country;
if (country == 1){
cout << "Type 1 for dollars and cents to reais or 2 for reais to dollars and cents" << endl;
cin >> money;}
else{
cout << "Type 1 for dollars and cents to bolivares or 2 for bolivares to dollars and cents" << endl;
cin >> money;}
}
void process (){
cout<< "Process reached ... " << endl;
}
void output (){
cout<< "Output reached ... " << endl;
}
int main(){
char ans;
do
{
input(money, country);
process();
output();
cout << "Do you want to enter in more data? Hit y to do so or n to exit" << endl;
cin >> ans;
}
while (ans == 'y' || ans == 'Y');
cout << "Bye" << endl;
return 0;
}
Take notice that the functions process and output HAVE NOTHING. This is because I hate programming and I just gave up since programming is the crappiest thing in the entire world!!! Only like 15 minutes left of this dumbass class...YAAAAR!!! I got emails too, hehe
(Read comments)
Post a comment in response:
scribbld is part of the horse.13 network
Design by Jimmy B.
Logo created by
hitsuzen.
Scribbld System Status