Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. void showPriceInEuros(float priceInPounds, float priceInEuros)
  2. {
  3. cout << ("The euro value of £") << priceInPounds << ("is €") << priceInEuros;
  4. }
  5.  
  6.  
  7. float calculateSum(float& sumInEuros, float priceInEuros)
  8. {
  9. sumInEuros = sumInEuros + priceInEuros;
  10. return sumInEuros;
  11. }
  12.  
  13. void displayFinalData(float& sumInEuros, float numberOfPrices)
  14. {
  15. cout << ("The total sum is: ") << sumInEuros << ("€");
  16. cout << ("The average is: ") << (sumInEuros / numberOfPrices);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement