Write a C++ Program to calculate Sales tax.

Calculate Sales Tax in C++ Program

Write a C++ Program to calculate Sales tax.

Object:

Write a C++ Program to calculate Sales tax. C++ Projects.

Code:

#include<iostream>
#include<conio.h>

using namespace std;
void main()
{
double tax,product,total,cal;
cout<<“\n\t***********************************************\n”;
cout<<“\t\t:S a l e s T a x C a l c u l a t o r:\n”;
cout<<“\t***********************************************\n”;
cout<<“\nPlease Enter herer Your Product Price : $”;
cin>>product;
cout<<“Enter here how many Percent Sales tax in this Product (please Enter tax %): “;
cin>>tax;
cal=product*(tax*0.01);
total=product+cal;
cout<<“\n\nYour Product Price is : $”<<product<<endl;
cout<<“Sales tax in this Product is : $”<<cal<<endl;
cout<<“Total Product Price with Tax is : $”<<total;
getch();
}

#include<iostream>
#include<conio.h>

using namespace std;
void main()
{
	double tax,product,total,cal;
	cout<<"\n\t**************************************************************\n";
	cout<<"\t\t:S a l e s   T a x   C a l c u l a t o r:\n";
	cout<<"\t**************************************************************\n";
	cout<<"\nPlease Enter herer Your Product Price : $";
	cin>>product;
	cout<<"Enter here how many Percent Sales tax in this Product (please Enter tax %): ";
	cin>>tax;
	cal=product*(tax*0.01);
	total=product+cal;
	cout<<"\n\nYour Product Price is : $"<<product<<endl;
	cout<<"Sales tax in this Product is : $"<<cal<<endl;
	cout<<"Total Product Price with Tax is : $"<<total;
	getch();
}

Output:

Write a C++ Program to calculate Sales tax.

Another Program: Write a program that will calculate the selling price of a circuit board that costs $12.67

2 thoughts on “Write a C++ Program to calculate Sales tax.”

  1. Pingback: Write a C++ Program to print the bill.

  2. Pingback: C++ projects for beginners with source code - Codeboks

Leave a Comment

Your email address will not be published. Required fields are marked *