where am I going wrong?

Hi there Im a complete 'NOOB' to c++ and an absolute beginner. Im creating a program with parameters to convert pounds to euros, I keep getting this errorc2447: '{' missing function header for the line 'void showPriceInEuros' .... what am I doing wrong?



#include <iostream> //for cin >> and cout <<
#include <cassert> //for assert
#include <iomanip> //for endl
#include <Windows.h>

using namespace std;

void processAPrice();
int getPriceInPounds();
int convertPriceIntoEuros(int pounds);
int showPriceInEuros(int pounds, int euros);
int calculateSum(int euros);
void produceFinalData(int sum, int numberOfPrices);

int main()
{
char answer('Y');
int numberOfPrices(0);

while (answer = 'Y')
{
processAPrice();
numberOfPrices++;
cout << "Continue? (Y/N)";
cin >> answer;
}

if (numberOfPrices > 0)
//produceFinalData(sum, numberOfPrices);


system("PAUSE"); //hold the screen until a key is pressed
return(0);
}


void processAPrice() //processing the given price
{
int pounds = getPriceInPounds();
int euros = convertPriceIntoEuros(pounds);
int sum = showPriceInEuros(pounds, euros);
calculateSum(euros);
}

int getPriceInPounds() // get the value
{
int priceInPounds;
cout << "Enter a price (in Pounds): /234";
cin >> priceInPounds;
return priceInPounds;
}


int convertPriceIntoEuros(int priceInPounds) // convert price into euros
{

const int conversionRate(0.82);
return priceInPounds / conversionRate;
}

void showPriceInEuros(int pounds, int euros); //
{

SetConsoleOutputCP(1252);
cout << "The Euro value of /234" <<pounds<< "is: \u20AC" <<euros;

}


int calculateSum(int euros) // Calculate the sum
{
int sumInEuros;
sumInEuros = (sumInEuros + euros);
return sumInEuros;
}

void produceFinalData(int sum, int numberOfPrices) // Final Output (answer)
{
SetConsoleOutputCP(1252);
cout << "The total sum is: \u20AC" << sum;
cout << "The average is: \u20AC" << (sum / numberOfPrices);

}
void showPriceInEuros(int pounds, int euros); // is wrong
{
// your code
}
void showPriceInEuros(int pounds, int euros) //right delete coma
{
// your code
}
Topic archived. No new replies allowed.