Pure Programmer
Blue Matrix

Cluster Map

Project: Sales Tax

Write a program that computes sales tax on a purchase amount. Also print the total sales amount including tax. Use a named constant for the sales tax rate at the top of the program and variables for the purchase amount, sales tax amount and total sale amount in the main part. Initially set sales tax rate to 8.0% and the purchase amount to $125.00. Then try changing the purchase amount and sales tax rate, then re-run the program.

$ g++ -std=c++17 SalesTax.cpp -o SalesTax -lfmt $ ./SalesTax Sales Amount: $125.00 Sales Tax: $10.00 Total Amount: $135.00