#include <iostream> using namespace std; int main() { // Enter purchase amount double purchaseAmount; cout << "Enter purchase amount: "; cin >> purchaseAmount; double tax = purchaseAmount * 0.06; cout << "Sales tax is " << static_cast<int>(tax * 100) / 100.0; return 0; }