Hotel Management in C


This C Program For Hotel Management System definitely has a wide scope to minimize errors in the making of bills and it also limits the delay of delivering bills to the customers which can include taxes on the basis of their expenditure.

Source Code

/*
Write a program for the following output using switch case
 
    MENU CARD
        1.COFFEE        Rs:15
        2.TEA           Rs:10
        3.COLD COFFEE   Rs:25
        4.MILK SHAKE    Rs:50
 
    Enter Your choice  : 2
 
    You have selected Tea
    Enter the quantity : 5
    Total amount :50
 
*/
#include<stdio.h>
 
int main()
{
    int ch,qty;
    printf("\n\tMENU CARD");
    printf("\n\t\t1.COFFEE        Rs:15");
    printf("\n\t\t2.TEA           Rs:10");
    printf("\n\t\t3.COLD COFFEE   Rs:25");
    printf("\n\t\t4.MILK SHAKE    Rs:50");
    printf("\n\n Enter Your choice  : ");
    scanf("%d",&ch);
    switch(ch)
    {
    case 1:
        printf("\nYou have selected Coffee");
        printf("\nEnter The Qty : ");
        scanf("%d",&qty);
        printf("\nTotal amount : %d",(qty*15));
        break;
     case 2:
        printf("\nYou have selected Tea");
        printf("\nEnter The Qty : ");
        scanf("%d",&qty);
        printf("\nTotal amount : %d",(qty*10));
        break;
     case 3:
        printf("\nYou have selected Cold Coffee");
        printf("\nEnter The Qty : ");
        scanf("%d",&qty);
        printf("\nTotal amount : %d",(qty*25));
        break;
     case 4:
        printf("\nYou have selected Milk Shake");
        printf("\nEnter The Qty : ");
        scanf("%d",&qty);
        printf("\nTotal amount : %d",(qty*50));
        break;
     default:
          printf("\nInvalid Product Selection");
          break;
 
    }
    return 0;
}
 
To download raw file Click Here

List of Programs


Sample Programs


Switch Case in C


Conditional Operators in C


Goto Statement in C


While Loop Example Programs


Looping Statements in C

For Loop Example Programs


Array Examples in C

One Dimensional Array


Two Dimensional Array in C


String Example Programs in C


Functions Example Programs in C


Learn All in Tamil © Designed & Developed By Tutor Joes