// Compute Tax: Compute sales tax on purchase // Authors: James P. Cohoon and Jack W. Davidson // Date: 4/25/1998 #include #include using namespace std; int main() { // Input price cout << "Purchase price ? "; float Price; cin >> Price; // Compute and output sales tax cout << "Sales tax on $" << Price << " is "; cout << "$" << Price * 0.04 << endl; return 0; }