free geoip

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 Introduction to Programming assignment no 1 spring october 25-2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#11
//gm mughal (03336283082)
#include<iostream.h>
#include<conio.h>
main()
{
int price,count=1;
float tax,t_amnt;
char choice;
double g_total;
cout<<"***VIRTUAL RESTURENT***"<<endl<<endl;
start:
cout<<"\nEnter the price of meal : ";
cin>>price;
if(price>=2000)
tax=price*0.02;
else if (price>=1000)
tax=price*0.01;
else
tax=0.0000;
t_amnt=price+tax;
g_total+=t_amnt;
cout<<"Price of the Meal :"<<price<<endl;
cout<<"Sales Tax :\t "<<tax<<endl;
cout<<"-------------------------"<<endl;
cout<<"Total Amount : \t "<<t_amnt<<endl;
if(price>=4000)
cout<<"\nThis Customer shouled be served with Trifle"<<endl;
else if(price>=3000)
cout<<"\nThis Customer shouled be served with Cake"<<endl;
else if(price>=2000)
cout<<"\nThis Customer shouled be served with Pudding"<<endl;
else if(price>=1000)
cout<<"\nThis Customer shouled be served with Sweet Bread"<<endl;
else
cout<<"\nThis Customer shouled be served with Sweet Candies"<<endl;
cout<<"\nDo you want to Processe anonter Customer ?"<<endl;
cout<<"\nEnter 'Y' for Yes or 'N' for Exit >:";
cin>>choice;
if(choice=='Y'||choice=='y')
{
++count;
goto start;
}
else if(choice=='N' || choice=='n')
cout<<"\n\nGrand Total:"<<endl;
cout<<"\nTotal Customers : "<<count<<endl;
cout<<"Total Amout for all Customers :"<<g_total<<endl;
getch();
}
Reply
#12
yah compile kernay say pehlay call karen.....
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply
#13
it is showing error on this line

cout"\***Virtual Resturent***\n\n";

now how it will be correct ??
Reply
#14
every body be care ful about assignment bez there is many falt in this assignment ok
Reply
#15
use this code.
cout<<"\n***Virtual Resturent***\n\n";
Reply
#16
bro yeh complete solution hai ya kuch rehta hai is mein???
Reply
#17
dev c++ main chala kar dekh lo.
Reply
#18
It is not working
Reply
#19
Sorry brother assignment is working. Thanks
Reply
#20
Dear do post your error so we will correct you.
regards
[SIZE="3"]03009520262[/SIZE]
Rabeel Website
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,356 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,944 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,972 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,213 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,280 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,010 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,702 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,839 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,739 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,835 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 2 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support