0% found this document useful (0 votes)
4 views4 pages

PF Project

The document presents a programming project titled 'Restaurant Menu' by Hafsa Tehreem, focusing on a C program that displays a menu with various food items and their prices. Users can select an item and specify the number of deals, after which the program calculates and displays the total price. The project is part of the Programming Fundamentals course, with a registration ID of 13348.

Uploaded by

cindysilva2610
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

PF Project

The document presents a programming project titled 'Restaurant Menu' by Hafsa Tehreem, focusing on a C program that displays a menu with various food items and their prices. Users can select an item and specify the number of deals, after which the program calculates and displays the total price. The project is part of the Programming Fundamentals course, with a registration ID of 13348.

Uploaded by

cindysilva2610
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

NAME: Hafsa Tehreem

Registration ID: 13348


Course: Programming Fundamentals

TITLE OF PROJECT
‘RESTURANT MENU’
PROGRAM: -
#include<stdio.h>
int main()
{
int order,num_deals;
printf("\t\n||^---------------------------MENU-----------------------------^||\n");
printf("(1) Chicken Biryani Rs.150 only.\n");
printf("(2) Chicken Shashlik Rs.160 only.\n");
printf("(3) Zinger Burger Rs.230 only.\n");
printf("(4) Chicken Burger Rs.135 only.\n");
printf("(5) Shwarma Rs.140 only.\n");
printf("(6) 2.5 Litre Coke Rs.120 only.\n");

printf("\nKindly Select your desired order number: \n");


scanf("%d", &order);
printf("Please Enter the number of deals: ");
scanf("%d", &num_deals);
switch(order)
{

case 1:
printf("\nOrder : Chicken Biryani.\n");
printf("\nNumber of deals : \n", num_deals);
printf("\nPrice of each deal: Rs.150 only.\n");
printf("\nTotal price is : Rs 150\n", num_deals);
printf("\n~---------THANK YOU FOR COMING! :)-----------~\n");
break;
case 2:
printf("\nOrder Chicken Shashlik.");
printf("\nNumber of deals : \n",num_deals);
printf("\nPrice of each deal: Rs.160 only.\n");
printf("\nTotal price : Rs 160\n",num_deals);
printf("\n~---------THANK YOU FOR COMING! :)-----------~\n");
break;
case 3:
printf("\nOrder : Zinger Burger.\n");
printf("\nNumber of deals : \n",num_deals);
printf("\nPrice of each deal: Rs. 230 only.\n");
printf("\nTotal price : Rs. 230\n",num_deals);
printf("\n~---------THANK YOU FOR COMING! :)-----------~\n");
break;
case 4:
printf("\nOrder : Chicken Burgar.\n");
printf("\nNumber of deals : \n",num_deals);
printf("\nPrice of each deal: Rs. 135 only.\n");
printf("\nTotal price : Rs 135\n", num_deals);
printf("\n~---------THANK YOU FOR COMING! :)-----------~\n");
break;
case 5:
printf("\nOrder : Shwarma .\n");
printf("\nNumber of deals : \n",num_deals);
printf("\nPrice of each deal: Rs.140 only.\n");
printf("\nTotal price : Rs 140\n",num_deals);
printf("\n~---------THANK YOU FOR COMING! :)-----------~");
break;
case 6:
printf("\nOrder : 2.5 Litre Coke.\n");
printf("\nNumber of deals : \n", num_deals);
printf("\nPrice of each deal: Rs. 120 only.\n");
printf("\nTotal price : Rs 120\n",num_deals);
printf("\n~---------THANK YOU FOR COMING! :)-----------~\n");
break;
}
return 0;
}

You might also like