Feb 20, 2016 at 10:18am Feb 20, 2016 at 10:18am UTC
somebody help me to make thisprogramm
The user display shows a start-up message welcoming the customer and invites him/her to proceed by pressing A key on the keypad.
On pressing A key a menu is displayed offering four choices of drinks and an option to cancel.When a choice has been made the display indicates the drink chosen along with its price and an option to continue. Each of the drinks has a different price.
If the option chosen is not to continue the user is returned to the welcome screen. Conversely, if the user elects to continue then a question requesting the quantity required is displayed
Feb 20, 2016 at 11:15am Feb 20, 2016 at 11:15am UTC
Sure, I'll begin it for you and you can finish it =)
Goodluck =)
Last edited on Feb 20, 2016 at 11:15am Feb 20, 2016 at 11:15am UTC
Feb 20, 2016 at 11:35am Feb 20, 2016 at 11:35am UTC
Man.... i know how to start
its difficult for me to complete please do something
Feb 20, 2016 at 11:36am Feb 20, 2016 at 11:36am UTC
its difficult for me to complete please do something
No "Man", you do something. This is your homework or whatever. Read the links I gave you, use google, use youtube and make the program yourself.
However, if you get stuck on a specific problem, we'll be glad to help you =) But you gotta show us the code you've written so far.
Last edited on Feb 20, 2016 at 11:40am Feb 20, 2016 at 11:40am UTC
Feb 21, 2016 at 6:09pm Feb 21, 2016 at 6:09pm UTC
hi TarikNeaj
i write code for 1 drink
it gives an error
please check it out
#include<iostream.h>
#include<conio.h>
void main()
{
char ch,again;
int n;
do
{
cout<<"Welcome Customers";
cout<<endl;
cout<<"please press A on the keyboard "<<endl;
cin>>ch;
switch(ch)
{
case 'A':
cout<<"1:Coca Cola"<<endl;
cout<<"2:7up"<<endl;
cout<<"3:Pepsi"<<endl;
cout<<"4:Sprite"<<endl;
cout<<endl;
cout<<"Enter Your Choice:"<<endl;
cin>>n;
if(n==1)
{
cout<<"Cocacola:"<<"Price=25Rs/per"<<endl;
cout<<"press C to continue:"<<endl;
cin>>ch;
if(ch=='C')
{
cout<<"Enter Quantity"<<endl;
cin>>n;
break;
default:
cout<<"invalid choice"<<endl;
}
}
cout<<endl;
cout<<"Enter A to return"<<endl;
cin>>again;
}
while(again=='A');
}
getch();
}
the error is (do statement must have while)
Feb 21, 2016 at 6:37pm Feb 21, 2016 at 6:37pm UTC
thank you very much
tarikneaj