You have to develop an electronic lunch menu for UCP executive lounge. Dynamically
create a character 2D list with the name , space and price of different items as shown
below. Assume that your price do not exceeds Rs 255.
Coke 40
Fanta 40
Cupcake 40
Tea 10
Coffee 40 Lays 20
Sandwich 25
Lassi 40
Bounty 120
Kurkure 10
Water 25

There can be two types of user of this system admin and customer.

Admin can Add/Edit/Remove the list. This account should be password protected. Password
should not be visible while admin writing on the screen instead just stars. Password should be
strong i.e. at least 5 characters having combination of upper, lower, special character and number
(0-9).
Admin can reset password by providing Hint.
User can only have following 2 options
1: Display all items with price
2: Order specific item price

For display all it must write “List”
For second option it would write „O‟ with the name of the product e.g.
O Fanta
O Lays Fanta
O Water Sanwich Fanta
Finally a confirmation message of complete order will display, user may accept by pressing Y or
can reject by N.
Customer account should not be password protected so that any one can use it.

And your question is? Make an effort, every student should do that.

i made my effort i have done my code but in my code user is also entering the price of his particular order me help me so that in that program user only type his order and the particular item price is automatically assign to that order help me please..!!!

We can only help you if you show us your code. How else can we find out what could be wrong with it?

It's difficult to understand what you mean. Give us an example, or show us your code, and where your stuck.

#include<iostream>
#include<string>
using namespace std;
#include<stdlib.h>
#include<conio.h>
#include<windows.h>
//char add(char**)
//void edit(char**)
//void remove(char**)
//void menu();
int main()
{
    int op,op2;
    int x=0;
    int *price;
    int size_p;
    int bill=0,size;
    char c1,ch;
    char c=' ';
    char arry[12];
    char** ary_c = new char*[10];
    char** ary = new char*[10];
    price=new int[size_p];
    cout<<"   ************************************************************"<<endl;
    cout<<"       Electronic Lunch menu for UCP executive lounge"<<endl;
    cout<<"   ************************************************************"<<endl;
    cout<<"Press 1 for admin\nPress 2 for coustomer: ";
    cin>>op;
    string password="";
    if (op==1)
    {
        cout<<"Enter the password..: "<<endl;
        while (c!=13)
        {
            c=getch();
            if(c!=13)
            {
                if(c==9)
                cout<<"";
                else
                {
                password+=c;
                cout<<"*";
                }

            }

        }
        cout<<endl;
        cout<<"please wait!!!!"<<endl;
        //Sleep(2000);
        if(password=="awais")
        {
        cout<<"Access Granted..."<<endl;


for(int i = 0; i< 25; i++)
    ary[i] = new char[25];
    cout<<"Enter 1 for for display items with price:\npress 2 for Order specific item price: ";
    cin>>op2;
    if(op2==1)
    {
        ary[0]="coke  40";
        cout<<"\t\t"<<ary[0]<<endl;
        ary[1]="fanta  40";
        cout<<"\t\t"<<ary[1]<<endl;
        ary[2]="cupcake  40";
        cout<<"\t\t"<<ary[2]<<endl;
        ary[3]="tea  10";
        cout<<"\t\t"<<ary[3]<<endl;
        ary[4]="coffee  40";
        cout<<"\t\t"<<ary[4]<<endl;
        ary[5]="lays  20";
        cout<<"\t\t"<<ary[5]<<endl;
        ary[6]="sandwitch  25";
        cout<<"\t\t"<<ary[6]<<endl;
        ary[7]="lassi  40";
        cout<<"\t\t"<<ary[7]<<endl;
        ary[8]="water  25";
        cout<<"\t\t"<<ary[8]<<endl;
        ary[9]="kurkure  10";
        cout<<"\t\t"<<ary[9]<<endl;
        ary[10]="bounty  120";
        cout<<"\t\t"<<ary[10]<<endl;


        }




    }

}

if (op==2)
{
    cout<<"Welcome coustomer:"<<endl;
    cout<<"For display list press L: ";
    cin>>c1;
if(c1=='L')
    {
    cout<<"   "<<"The list of thing we have in our UCP LOUNGE.."<<endl;
    ary[0]="coke  40";
        cout<<"\t\t"<<ary[0]<<endl;
        ary[1]="fanta  40";
        cout<<"\t\t"<<ary[1]<<endl;
        ary[2]="cupcake  40";
        cout<<"\t\t"<<ary[2]<<endl;
        ary[3]="tea  10";
        cout<<"\t\t"<<ary[3]<<endl;
        ary[4]="coffee  40";
        cout<<"\t\t"<<ary[4]<<endl;
        ary[5]="lays  20";
        cout<<"\t\t"<<ary[5]<<endl;
        ary[6]="sandwitch  25";
        cout<<"\t\t"<<ary[6]<<endl;
        ary[7]="lassi  40";
        cout<<"\t\t"<<ary[7]<<endl;
        ary[8]="water  25";
        cout<<"\t\t"<<ary[8]<<endl;
        ary[9]="kurkure  10";
        cout<<"\t\t"<<ary[9]<<endl;
        ary[10]="bounty  120";
        cout<<"\t\t"<<ary[10]<<endl;
        }
        for(int i = 0; i< 25; i++)
    ary_c[i] = new char[25];
    do{

cout<<"Enter the number of items that you want to purchase: ";
cin>>size;
    for(int a=0;a<size;a++)
    {
        cin>>ary_c[a];  

    }
    cout<<"NOW Enter price of selected item that you want to purchase given above: ";
cin>>size_p;
    for(int z=0;z<size_p;z++)
    {
        cout<<"please enter: "<<endl;
        cin>>price[z];
        bill=bill+price[z];
        if(bill<=255)
        {

        }
        else
        {
            cout<<"Your ammount is extened from 255 "<<endl;
            ary_c[z]=0;


        }
    }
    cout<<"                   The things you have order            "<<endl;
    for(int k=0;k<size;k++)
    {
        cout<<"                   "<<ary_c[k]<<"          =         "<<price[k]<<endl;
    }

    cout<<"Your total bill is : "<<bill;
    cout<<"Do you want more product if Yes press Y\nNO then press N: ";
    cin>>ch;



}
while(ch=='Y');

}

}

this is my code in this code user is entering price of his order please convert this code so that user only enter order and his bill is calculated

any one help me please.

for price you have to save price in and array and use that price from the array when the user select particular item

for example
if user selects item number 2 you have to use price[1].

so you get exact price of particular item
and for admin side u cant update this price array by taking updated value from the admin

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.