compute_tax_function - c return 0 }// end of main double...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <iostream> using namespace std double computeTax(double basePrice) const double TAX_RATE = 0.06 int main() { double price = 0 cout << "Enter a price: " cin >> price cout << computeTax(price) << endl
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: c return 0 }// end of main double computeTax(double basePrice) { double taxAmount = 0.0 taxAmount = basePrice * TAX_RATE t return taxAmount }// end of computeTax...
View Full Document

Ask a homework question - tutors are online