dhaba

Description

a program to make normal restaurant billing

Reviews
Shared by: mksingh1990
Categories
Stats
views:
4
rating:
not rated
reviews:
0
posted:
10/26/2009
language:
English
pages:
0
#include #include samosa(); vada(); chkn(); frd(); void menu(); int q,total,t,sum=0; void main() { clrscr(); printf("\t\t\****Welocme to Mukesh Dhaba*******"); cont: int n; sum=sum+total; printf("\npress 0 for menu else item code"); scanf("%d",&n); if(n==0) { menu(); goto cont; } if(n==1) { samosa(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } if(n==2) { vada(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } if(n==3) { chkn(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } if(n==4) { frd(); printf("to cont press 0 else any other key to exit"); scanf("%d",&t); if(t==0) { goto cont; } else { goto exit; } } exit: sum=sum+total; printf("\t********Than Q*************"); printf("\n\t\t\t\t\t\t\t total=%d",sum); getch(); } void menu() { printf("1:samosa \n2:vada \n3:chicken biryani \n4:fried rice"); } samosa() { printf("samosa::enter quantity"); scanf("%d",&q); total=q*10; return total; } vada() { printf("vada::enter quantity"); scanf("%d",&q); total=q*8; return total; } chkn() { printf("chicken biryani::enter quantity"); scanf("%d",&q); total=q*40; return total; } frd() { printf("fried rice::enter quantity"); scanf("%d",&q); total=q*20; return total; }

Related docs
World AIDS Day 2009 Bulletin
Views: 1  |  Downloads: 0
THE STORY OF CHILD LABOUR
Views: 21  |  Downloads: 2
List of V
Views: 6  |  Downloads: 0
PROJECT PROFILE ON BOOK BINDING NOTE BOOKS
Views: 1  |  Downloads: 0
Consumer Behavior part2
Views: 0  |  Downloads: 0
Delhi Hotels
Views: 138  |  Downloads: 2
Blank document V12.0 (Apr 2005)
Views: 0  |  Downloads: 0
premium docs