Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...
Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeSearchLatest imagesLog inRegister
Search
 
 

Display results as :
 
Rechercher Advanced Search
Freelancer.com
Visitors
Live Trafic
Sale Tax Calculator in C++ Pageviews=1

 

 Sale Tax Calculator in C++

Go down 
AuthorMessage
Admin
Admin



Posts : 216
Join date : 2011-06-17
Location : Rawalpindi

Sale Tax Calculator in C++ Empty
PostSubject: Sale Tax Calculator in C++   Sale Tax Calculator in C++ EmptyThu Oct 27, 2011 6:11 am

You are required to write a program for BILLING SYSTEM of a virtual restaurant. The basic idea is that by entering the meal price, your billing system will calculate the Sales Tax, Total amount and Complement offer upon that meal.



int main()
{
int price;
cout << "Please enter meal price? ";
cin >> price;
float saleTax;
if(price<=100)
{
saleTax = 0.0 * price;
}
else if(price <= 200)
{
saleTax = 0.1 * price;
}
else
{
saleTax = 0.2 * price;
}

int totalAmount;
totalAmount = price + saleTax;
cout << "The total price of Meal is = " << totalAmount << endl;
getch();
}


[You must be registered and logged in to see this link.]
Back to top Go down
https://pakitworld.board-directory.net
 
Sale Tax Calculator in C++
Back to top 
Page 1 of 1
 Similar topics
-
» Calculator in Java Script
» Weight Calculator in JAVA

Permissions in this forum:You cannot reply to topics in this forum
 :: Programming :: C & C++-
Jump to: