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();
}

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

M.A Siddiqui

Hi, I am M.A Siddiqui. I'm a Computer Science Student, In this website, I'm teaching you Multiple languages and provides Projects and other Subjects Notes.

You may also like...

2 Responses

  1. May 30, 2020

    […] Another Program: Write a C++ Program to calculate Sales tax. […]

  2. June 14, 2020

    […] Write a C++ Program to calculate Sales tax. […]

Leave a Reply

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