Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...



 
HomeCalendarFAQSearchMemberlistUsergroupsLog inRegister
Search
 
 

Display results as :
 
Rechercher Advanced Search
Freelancer.com
Visitors
Live Trafic

Share | 
 

 Sale Tax Calculator in C++

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


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

PostSubject: Sale Tax Calculator in C++   Thu 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
View user profile http://pakitworld.board-directory.net
 
Sale Tax Calculator in C++
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» 2 Honda xr80's for sale
» Cabelas Door Buster Sale ~ Garmin 60CSX $199
» ebay scamp for sale
» For Sale: Yamaha YBR 125
» Electric windshield for sale

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