Spring 2020 - Assignment CS101 - 3
Spring 2020 - Assignment CS101 - 3
Program should add 19% GST to the stated order by your customer. If the customer’s bill is
greater than 1000 rupees, the restaurant will give 5% discount on complete calculated bill.
You program must show the complete order details along with GST calculations, Discount (if
applicable) and final amount.
Solution
#include<iostream>
using namespace std;
main()
{
int item,p_qty=0,b_qty=0,s_qty=0,pr_qty=0;
int price_p=0,price_b=0,price_s=0,price_pr=0;
cout<<"\t\t**** Restaurant ****";
cout<<"\n\n\t\t\t *** Menu ***\n";
cout<<"\n\tPizza (Rs. 999)";
cout<<"\n\tBurger (Rs. 250)";
cout<<"\n\tSandwich (Rs. 150";
cout<<"\n\tParatha Roll (Rs. 200)";
cout<<"\n\n\tEnter quantity of Pizza : ";
cin>>p_qty;
cout<<"\tEnter quantity of Burger : ";
cin>>b_qty;
cout<<"\tEnter quantity of Sandwich : ";
cin>>s_qty;
cout<<"tEnter quantity of Paratha Roll : ";
cin>>pr_qty;
price_p = p_qty * 999;
price_b = b_qty * 250;
price_s = s_qty * 150;
price_pr = pr_qty * 200;
int bill= price_p+price_b+price_s+price_pr;