# include <iostream>
usingnamespace std;
int main()
{
float sale_price;
float state_sale_tax;
float city_sale_tax;
float luxury_sale_tax;
float total_tax;
float total_amount_due;
cout << "This is a program that calculates the sale price of an ";
cout << "item and adds the tax of city and state and output the amount due" << endl;
cout << "Please enter the sale price of your item" << endl;
cin >> sale_price;
state_sale_tax = sale_price * 0.04;
city_sale_tax = sale_price * 0.015;
if sale_price < 49999 luxuray_tax = 0;
if sale_price > 49999 luxuray_tax = sale_price * 0.1;
cout << "State Tax due is " << state_sale_tax << endl;
cout << "City Tax due is " << city_sale_tax << endl;
cout << "Luxury Tax due is " << luxury_sale_tax << endl;
total_tax = state_sale_tax + city_sale_tax + luxury_sale_tax;
cout << "Total Tax due is " << total_tax << endl;
total_amount_due = sale_price + total_tax;
cout << "Total amount due is " << total_amount_due << endl;
cout << "thank you for using my program, have a nice day " << endl;
return 0;
}