Billing system project in C++

Jan 28, 2009 at 4:51pm
HI i have this as a school project. could you please help me in completing it by helping me with the codes for the program?
this is the question:

Q write a program in C++ to computurize the billing system of a restaurant with the help of the following functions:

a) int password(char usr_name[],char pwd[]);// checks for the validity of the user name and password and return the status i.e returns 1 in case the password is valid and 0 if invalid.

b) void menu(char list[5][20],float price[5]);// displays the name of the restaurant at the top and then the list of each item along withe price per unit of that item in the following format:

HUNGRY??
item price per unit
1.Burger 50
2.Patty 25
3.sandwhich 20
4.pepsi 15
5.tea 10

now using the above functions write the program to generate the following screens:

SCREEN1
1.input user name
2.input the password
3.check for validity of the password; user sholud be given three chances to input the correct password

NOTE: correct user name and the password should already be stored in the program in the password function.

After the valid password has been entered:

SCREEN2
input the items to be there in the restaurant along with their proces and store them in 2D character array and 1D float array respectively.

SCREEN3
1.Display the menu card using the menu function
2.input the item to be ordered by the customer.
3.input the quantity of that item.

NOTE: Above three steps should be repeated till the customer wants to roedre more.

SCREEN4
Display the bill in the following format:

HUNGRY?
Item price per unit Quantity Value
1.burger 50 2 100
2.sandwich 20 1 20
3.pepsi 15 3 45

TOTAL: Rs.165

I hope you will tell me the program and help me as i am desperate...



Jan 28, 2009 at 6:33pm
Jan 29, 2009 at 12:22am
Why not start by telling us what you dont know? It will be easier for us to help instead of literalily writing the whole code for you.
Topic archived. No new replies allowed.