PROJECT OF ICT LAB isfhan
PROJECT OF ICT LAB isfhan
INTRODUCTION
PROJECT CONTENT
FUNCTIONS
Initialization:
The display Menu () function is called to print the menu to the screen.
User Input:
If true, the loop breaks and the program proceeds to display the final
total.
Quantity Input:
If the choice is not 5, the program prompts the user to enter the
quantity.
Update Total:
The total cost is updated based on the user’s choice and quantity.
Repeat Loop:
The loop repeats from step 2 until the user chooses to exit.
Final Output:
End:
switch(order)
{
case 'a': case 'A':
printf("You Ordered Chicken Karahi.");
price=600;
break;
case 'b': case 'B':
printf("You Ordered Chapli Kabab.");
price=700;
break;
case 'c': case 'C':
printf("You Ordered Seekh Kabab.");
price=800;
break;
case 'd': case 'D':
printf("You Ordered Nihari.");
price=900;
break;
case 'e': case 'E':
printf("You Ordered Mutton Karahi.");
price=1000;
break;
case 'f': case 'F':
printf("You Ordered Chicken Plao.");
price=10;
break;
case 'g': case 'G':
printf("You Ordered Chineese Rice.");
price=12;
break;
case 'h': case 'H':
printf("You Ordered Mutton Biryani.");
price=15;
break;
case 'i': case 'I':
printf("You Ordered Zarda.");
price=18;
break;
case 'j': case 'J':
printf("You Ordered Brown Rice.");
price=25;
break;
case 'k': case 'K':
printf("You Ordered Ice Cream.");
price=30;
break;
case 'l': case 'L':
printf("You Ordered Falooda.");
price=35;
break;
case 'm': case 'M':
printf("You Ordered Kheer.");
price=40;
break;
case 'n': case 'N':
printf("You Ordered Halwa.");
price=45;
break;
case 'o': case 'O':
printf("You Ordered Laddu.");
price=50;
break;
case 'p': case 'P':
printf("You Ordered Mineral Water.");
price=10;
break;
case 'q': case 'Q':
printf("You Ordered Cold Drink.");
price=25;
break;
case 'r': case 'R':
printf("You Ordered Lassi.");
price=28;
break;
case 's': case 'S':
printf("You Ordered Tea.");
price=26;
break;
case 't': case 'T':
printf("You Ordered Coffee.");
price=90;
break;
case 'u': case 'U':
printf("You Ordered Green Salad.");
price=110;
break;
case 'v': case 'V':
printf("You Ordered Fruit Salad.");
price=80;
break;
case 'w': case 'W':
printf("You Ordered Russian Salad.");
price=155;
break;
case 'x': case 'X':
printf("You Ordered Traditional Salad.");
price=300;
break;
case 'y': case 'Y':
printf("You Ordered Chef Salad.");
price=100;
break;
case 'z': case 'Z':
printf("You Ordered Hawain Salad.");
price=200;
break;
default:
printf("Invalid Entry, Please Restart.");
break;
}
printf("\n\nHow Many Order/s?");
printf("\n");
scanf("%d","a); bill=price*quota;
printf("\nYour Total bill is Rs %d.",bill);
printf("\n\nWant To Order Again? \nyes/no :");
printf("\n");
scanf("%s",&loop);
}
while(loop=='Y'||loop=='y');
if (loop=='N' ||loop=='n')
{ total=bill*0.06;
tbill=total+bill;
printf("\nYour Bill is Rs %d.");
printf("\n\n+Service Charges of bill is Rs %d.",total);
printf("\n\n___________________________________");
printf("\n\nYour Total Bill is Rs %d.",tbill);
printf("\n___________________________________");
printf("\n\n \tTHANK YOU FOR YOUR ORDER ");
}
else
{
printf("\nInvalid Choice, Please Restart.");
}
printf("\n\n===================================");
return 0;
}
OUTPUT RESULT
CONCLUSION