Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void showPriceInEuros(float priceInPounds, float priceInEuros)
- {
- cout << ("The euro value of £") << priceInPounds << ("is €") << priceInEuros;
- }
- float calculateSum(float& sumInEuros, float priceInEuros)
- {
- sumInEuros = sumInEuros + priceInEuros;
- return sumInEuros;
- }
- void displayFinalData(float& sumInEuros, float numberOfPrices)
- {
- cout << ("The total sum is: ") << sumInEuros << ("€");
- cout << ("The average is: ") << (sumInEuros / numberOfPrices);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement