#include <iostream>
using namespace std;
int main()
{double meal,tax,rate,total,totalAll=0;
int cust=0;
char yes;
do
{
cout<<"****Virtual Restaurant****\n";
cout<<"Enter the price of meal: ";
cin>>meal;
if(meal<=1000)
rate=0;
else if(meal<=2000)
rate=.01;
else
rate=.02;
tax=meal*rate;
total=meal+tax;
cout<<"Price of meal "<<meal<<endl;
cout<<"Tax "<<tax<<endl;
cout<<"Your meal total is "<<total<<endl;
cout<<"this customer should be served with ";
if(total<1000)
cout<<"candies\n";
else if(total<2000)
cout<<"Sweet Bread\n";
else if(total<3000)
cout<<"Pudding\n";
else if (total<4000)
cout<<"Cake\n";
else
cout<<"Trifle\n";
cust++;
totalAll+=total;
cout<<"would you like to process another customer(Y/N)? ";
cin>>yes;
}while(yes=='y'||yes=='Y');
cout<<"\ngrandtotal\nCustomers processed "<<cust<<endl;
cout<<"Total amount "<<totalAll<<endl;
system("pause");
return 0;
}
thori changing ap ko khud karni pary gi according to given sample
--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
using namespace std;
int main()
{double meal,tax,rate,total,totalAll=0;
int cust=0;
char yes;
do
{
cout<<"****Virtual Restaurant****\n";
cout<<"Enter the price of meal: ";
cin>>meal;
if(meal<=1000)
rate=0;
else if(meal<=2000)
rate=.01;
else
rate=.02;
tax=meal*rate;
total=meal+tax;
cout<<"Price of meal "<<meal<<endl;
cout<<"Tax "<<tax<<endl;
cout<<"Your meal total is "<<total<<endl;
cout<<"this customer should be served with ";
if(total<1000)
cout<<"candies\n";
else if(total<2000)
cout<<"Sweet Bread\n";
else if(total<3000)
cout<<"Pudding\n";
else if (total<4000)
cout<<"Cake\n";
else
cout<<"Trifle\n";
cust++;
totalAll+=total;
cout<<"would you like to process another customer(Y/N)? ";
cin>>yes;
}while(yes=='y'||yes=='Y');
cout<<"\ngrandtotal\nCustomers processed "<<cust<<endl;
cout<<"Total amount "<<totalAll<<endl;
system("pause");
return 0;
}
thori changing ap ko khud karni pary gi according to given sample
On Thu, Nov 3, 2011 at 1:24 PM, mc110403700 Maria Naz <mc110403700@vu.edu.pk> wrote:
cs201 ka solution koi snd kr dy
On 11/3/11, mc110403318 Jehanzeb <mc110403318@vu.edu.pk> wrote:
> 2 subject mary be hai cs201mth202
>
> On Tue, Nov 1, 2011 at 1:44 PM, mc110401822 Sobia Sakhawat <
> mc110401822@vu.edu.pk> wrote:
>
>> helo
>> plz mjy b koi idea bta dain
>>
>>
>>
>> On Tue, Nov 1, 2011 at 11:20 AM, mc100203407 Fida Hussain Altaf
>> <mc100203407@vu.edu.pk <mc090406330@vu.edu.pk>> wrote:
>>
>>> kindly someone send me the solution of the current assignment of cs
>>>>> 201,301,302,304,401,403,mth202
>>>>>
>>>>> --
>>>>> We say, "Be one as Pakistani Nation and grow up for Pakistan's Future".
>>>>> Wish you all the best. Join www.vuaskari.com,
>>>>> To post to this group, send email to vuaskari_com@googlegroups.com
>>>>> Visit these groups:
>>>>> This (Main) Group:
>>>>> http://groups.google.com/group/vuaskari_com?hl=en?hl=en
>>>>> MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
>>>>> HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
>>>>> Banking Group:
>>>>> http://groups.google.com/group/askari_banking?hl=en?hl=en
>>>>> Management: https://groups.google.com/group/vuaskari_mgt?hl=en
>>>>> Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
>>>>> MIS Group: http://groups.google.com/group/askari_mis?hl=en
>>>>>
>>>>
>>>> --
>>>> We say, "Be one as Pakistani Nation and grow up for Pakistan's Future".
>>>> Wish you all the best. Join www.vuaskari.com,
>>>> To post to this group, send email to vuaskari_com@googlegroups.com
>>>> Visit these groups:
>>>> This (Main) Group:
>>>> http://groups.google.com/group/vuaskari_com?hl=en?hl=en
>>>> MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
>>>> HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
>>>> Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
>>>> Management: https://groups.google.com/group/vuaskari_mgt?hl=en
>>>> Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
>>>> MIS Group: http://groups.google.com/group/askari_mis?hl=en
>>>>
>>>
>>>
>>>
>>> --
>>> Fida Saghar
>>>
>>>
>>> --
>>> We say, "Be one as Pakistani Nation and grow up for Pakistan's Future".
>>> Wish you all the best. Join www.vuaskari.com,
>>> To post to this group, send email to vuaskari_com@googlegroups.com
>>> Visit these groups:
>>> This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
>>> MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
>>> HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
>>> Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
>>> Management: https://groups.google.com/group/vuaskari_mgt?hl=en
>>> Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
>>> MIS Group: http://groups.google.com/group/askari_mis?hl=en
>>>
>>
>> --
>> We say, "Be one as Pakistani Nation and grow up for Pakistan's Future".
>> Wish you all the best. Join www.vuaskari.com,
>> To post to this group, send email to vuaskari_com@googlegroups.com
>> Visit these groups:
>> This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
>> MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
>> HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
>> Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
>> Management: https://groups.google.com/group/vuaskari_mgt?hl=en
>> Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
>> MIS Group: http://groups.google.com/group/askari_mis?hl=en
>>
>
> --
> We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish
> you all the best. Join www.vuaskari.com,
> To post to this group, send email to vuaskari_com@googlegroups.com
> Visit these groups:
> This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
> MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
> HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
> Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
> Management: https://groups.google.com/group/vuaskari_mgt?hl=en
> Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
> MIS Group: http://groups.google.com/group/askari_mis?hl=en
>
--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en
Comments
Post a Comment