└── final.c /final.c: -------------------------------------------------------------------------------- 1 | #include 2 | int cibo(); 3 | int blue(); 4 | int cascade(); 5 | int me(); 6 | int dindugal(); 7 | int southern(); 8 | int hamacho(); 9 | int hilton(); 10 | int aman(); 11 | int main(){ 12 | int place; 13 | int choice; 14 | printf("Choose the location:\n 1.Salem \n 2.Karur \n 3.Tokyo\n"); 15 | scanf("%d",&place); 16 | switch(place){ 17 | 18 | case 1: 19 | { 20 | printf("The hotels available in Salem are listed below:\n\t1.CIBO Restaurant\n\t2.Blue Moon Restaurant\n\t3.The Cascade"); 21 | printf("\nChoose the restaurant:"); 22 | scanf("%d",&choice); 23 | switch(choice){ 24 | 25 | case 1: 26 | { 27 | cibo(); 28 | break; 29 | 30 | } 31 | case 2: 32 | { 33 | blue(); 34 | break; 35 | 36 | } 37 | case 3: 38 | { 39 | cascade(); 40 | break; 41 | 42 | } 43 | 44 | default: 45 | { 46 | printf("Invalid choice"); 47 | break; 48 | } 49 | } 50 | break; 51 | 52 | } 53 | 54 | case 2: 55 | { 56 | printf("The hotels available in Karur are listed below:\n\t1.MEAT AND EAT\n\t2.Dindugal Thalappakatti \n\t3.Southern Spice "); 57 | printf("\nChoose the restaurant:"); 58 | scanf("%d",&choice); 59 | switch(choice){ 60 | 61 | case 1: 62 | { 63 | me(); 64 | break; 65 | 66 | } 67 | case 2: 68 | { 69 | dindugal(); 70 | break; 71 | 72 | } 73 | case 3: 74 | { 75 | southern(); 76 | break; 77 | 78 | } 79 | 80 | default: 81 | { 82 | printf("Invalid choice"); 83 | break; 84 | } 85 | } 86 | 87 | 88 | break; 89 | 90 | } 91 | 92 | case 3: 93 | { 94 | printf("The hotels available in Tokyo are listed below: \n\t1.Hamacho\n\t2.Hilton\n\t3.Aman"); 95 | printf("\nChoose the restaurant:"); 96 | scanf("%d",&choice); 97 | switch(choice){ 98 | 99 | case 1: 100 | { 101 | hamacho(); 102 | break; 103 | 104 | } 105 | case 2: 106 | { 107 | hilton(); 108 | break; 109 | 110 | } 111 | case 3: 112 | { 113 | aman(); 114 | break; 115 | 116 | } 117 | 118 | default: 119 | { 120 | printf("Invalid choice"); 121 | break; 122 | } 123 | } 124 | 125 | break; 126 | } 127 | default:{ 128 | printf("Invalid choice"); 129 | break; 130 | }} 131 | } 132 | int cibo(){ 133 | 134 | int ch,qty,f; 135 | float itemPrice,totalAmount=0.0; 136 | printf("\n\tMENU CARD"); 137 | 138 | printf("\n\t\t1.MUSHROOM NOODLES Rs.150+Gst.3 = 153"); 139 | printf("\n\t\t2.BIRIYANI Rs.100+Gst.2 = 102"); 140 | printf("\n\t\t3.HOT CHILLI PANEER Rs.210+Gst.5 = 215"); 141 | printf("\n\t\t4.CHEESE GARLIC NAAN Rs.75+Gst.3 = 78"); 142 | printf("\n\t\t5.CHICKEN TANDOORI Rs.300+Gst.10 = 310"); 143 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 144 | printf("\n\t\t7.MUTTON TIKKA Rs.250+Gst.20 = 270"); 145 | printf("\n\t\t8.JIGARTHANDA Rs.80+Gst.4 = 84"); 146 | printf("\n\t\t9.MILKSHAKE Rs.65+Gst.2 = 67"); 147 | printf("\n\t\t10.MOJITO Rs.65+Gst.3 = 68"); 148 | printf("\n\t\t11.Exit"); 149 | 150 | int displayMenu(){ 151 | printf("\n\nEnter Your choice : "); 152 | scanf("%d",&ch); 153 | switch (ch) { 154 | case 1: 155 | printf("Enter Quantity:"); 156 | scanf("%d",&qty); 157 | f=qty*153; 158 | return f; 159 | break; 160 | case 2: 161 | printf("Enter Quantity:"); 162 | scanf("%d",&qty); 163 | f=qty*102; 164 | int bri; 165 | printf("If it is Bakrid or Ramzan click 26:"); 166 | scanf("%d",&bri); 167 | if(bri==26){ 168 | printf("As it is festival time you are getting 10 percent discount........."); 169 | f=f-(f*0.10); 170 | 171 | } 172 | return f; 173 | break; 174 | case 3: 175 | printf("Enter Quantity:"); 176 | scanf("%d",&qty); 177 | f=qty*215; 178 | return f; 179 | break; 180 | case 4: 181 | printf("Enter Quantity:"); 182 | scanf("%d",&qty); 183 | f=qty*78; 184 | return f; 185 | break; 186 | 187 | case 5: 188 | printf("Enter Quantity:"); 189 | scanf("%d",&qty); 190 | f=qty*310; 191 | return f; 192 | break; 193 | case 6: 194 | printf("Enter Quantity:"); 195 | scanf("%d",&qty); 196 | f=qty*200; 197 | int chri; 198 | printf("If it is christmas or newyear click 25:"); 199 | scanf("%d",&chri); 200 | if(chri==25){ 201 | printf("As it is festival time you are getting 20 percent discount........."); 202 | f=f-(f*0.20); 203 | 204 | } 205 | return f; 206 | break; 207 | case 7: 208 | printf("Enter Quantity:"); 209 | scanf("%d",&qty); 210 | f=qty*270; 211 | return f; 212 | break; 213 | case 8: 214 | printf("Enter Quantity:"); 215 | scanf("%d",&qty); 216 | f=qty*84; 217 | return f; 218 | break; 219 | case 9: 220 | printf("Enter Quantity:"); 221 | scanf("%d",&qty); 222 | f=qty*67; 223 | return f; 224 | break; 225 | case 10: 226 | printf("Enter Quantity:"); 227 | scanf("%d",&qty); 228 | f=qty*68; 229 | return f; 230 | break; 231 | 232 | case 11: 233 | return 0; 234 | default: 235 | printf("\nInvalid Product Selection"); 236 | break; 237 | } 238 | } 239 | 240 | 241 | while ((itemPrice = displayMenu()) != 0) { 242 | 243 | if (itemPrice > 0) { 244 | totalAmount += itemPrice; 245 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 246 | } else if (itemPrice < 0) { 247 | printf("Error occurred. Exiting...\n"); 248 | return 1; 249 | } else { 250 | printf("Thank you for using the Hotel Management System.\n"); 251 | } 252 | } 253 | 254 | printf("Your total bill is: $%.2f\n", totalAmount); 255 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 256 | 257 | return 0; 258 | } 259 | 260 | 261 | int blue(){ 262 | int ch,qty,f; 263 | float itemPrice,totalAmount=0.0; 264 | printf("\n\tMENU CARD"); 265 | 266 | printf("\n\t\t1.GHEE ROAST Rs.70+Gst.3= 73.3"); 267 | printf("\n\t\t2.AAPAM Rs.50+Gst.2 = 52.2"); 268 | printf("\n\t\t3.CHAPATHI Rs.70+Gst.4 = 74.4"); 269 | printf("\n\t\t4.GOPI MANJURIAN Rs.75+Gst.3 = 78"); 270 | printf("\n\t\t5.BIRIYANI Rs.101+Gst.2 = 103"); 271 | printf("\n\t\t6.BUTTER CHICKEN Rs.190+Gst.10 = 200"); 272 | printf("\n\t\t7.CAKE Rs.145+Gst.4 = 149"); 273 | printf("\n\t\t8.ICE CREAM Rs.80+Gst.4 = 84"); 274 | printf("\n\t\t9.POLI Rs.35+Gst.2 = 37"); 275 | printf("\n\t\t10.RASA GULLA Rs.65+Gst.3 = 68"); 276 | printf("\n\t\t11.Exit"); 277 | 278 | int displayMenu(){ 279 | printf("\n\nEnter Your choice : "); 280 | scanf("%d",&ch); 281 | switch (ch) { 282 | case 1: 283 | printf("Enter Quantity:"); 284 | scanf("%d",&qty); 285 | f=qty*73.3; 286 | return f; 287 | break; 288 | case 2: 289 | printf("Enter Quantity:"); 290 | scanf("%d",&qty); 291 | f=qty*52.2; 292 | 293 | return f; 294 | break; 295 | case 3: 296 | printf("Enter Quantity:"); 297 | scanf("%d",&qty); 298 | f=qty*74.4; 299 | return f; 300 | break; 301 | case 4: 302 | printf("Enter Quantity:"); 303 | scanf("%d",&qty); 304 | f=qty*78; 305 | return f; 306 | break; 307 | 308 | case 5: 309 | printf("Enter Quantity:"); 310 | scanf("%d",&qty); 311 | f=qty*103; 312 | int bri; 313 | printf("If it is Bakrid or Ramzan click 26:"); 314 | scanf("%d",&bri); 315 | if(bri==26){ 316 | printf("As it is festival time you are getting 10 percent discount........."); 317 | f=f-(f*0.10); 318 | 319 | } 320 | return f; 321 | break; 322 | case 6: 323 | printf("Enter Quantity:"); 324 | scanf("%d",&qty); 325 | f=qty*200; 326 | int chri; 327 | printf("If it is christmas or newyear click 25:"); 328 | scanf("%d",&chri); 329 | if(chri==25){ 330 | printf("As it is festival time you are getting 20 percent discount........."); 331 | f=f-(f*0.20); 332 | 333 | } 334 | return f; 335 | break; 336 | case 7: 337 | printf("Enter Quantity:"); 338 | scanf("%d",&qty); 339 | f=qty*149; 340 | return f; 341 | break; 342 | case 8: 343 | printf("Enter Quantity:"); 344 | scanf("%d",&qty); 345 | f=qty*84; 346 | return f; 347 | break; 348 | case 9: 349 | printf("Enter Quantity:"); 350 | scanf("%d",&qty); 351 | f=qty*37; 352 | return f; 353 | break; 354 | case 10: 355 | printf("Enter Quantity:"); 356 | scanf("%d",&qty); 357 | f=qty*68; 358 | return f; 359 | break; 360 | 361 | case 11: 362 | return 0; 363 | default: 364 | printf("\nInvalid Product Selection"); 365 | break; 366 | } 367 | } 368 | 369 | 370 | while ((itemPrice = displayMenu()) != 0) { 371 | 372 | if (itemPrice > 0) { 373 | totalAmount += itemPrice; 374 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 375 | } else if (itemPrice < 0) { 376 | printf("Error occurred. Exiting...\n"); 377 | return 1; 378 | } else { 379 | printf("Thank you for using the Hotel Management System.\n"); 380 | } 381 | } 382 | 383 | printf("Your total bill is: $%.2f\n", totalAmount); 384 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 385 | 386 | return 0; 387 | } 388 | int cascade(){ 389 | int ch,qty,f; 390 | float itemPrice,totalAmount=0.0; 391 | printf("\n\tMENU CARD"); 392 | 393 | printf("\n\t\t1.KADAI PANNER Rs.150+Gst.3 = 153"); 394 | printf("\n\t\t2.VEG KOLHAPURI Rs.100+Gst.2 = 102"); 395 | printf("\n\t\t3.BIRIYANI Rs.210+Gst.5 = 215"); 396 | printf("\n\t\t4.GOBI CHILLI Rs.75+Gst.3 = 78"); 397 | printf("\n\t\t5.CRAB SOAP Rs.300+Gst.10 = 310"); 398 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 399 | printf("\n\t\t7.FISH CURRY Rs.250+Gst.20 = 270"); 400 | printf("\n\t\t8.JUICE Rs.80+Gst.4 = 84"); 401 | printf("\n\t\t9.MILKSHAKE Rs.65+Gst.2 = 67"); 402 | printf("\n\t\t10.MOJITO Rs.65+Gst.3 = 68"); 403 | printf("\n\t\t11.Exit"); 404 | 405 | int displayMenu(){ 406 | printf("\n\nEnter Your choice : "); 407 | scanf("%d",&ch); 408 | switch (ch) { 409 | case 1: 410 | printf("Enter Quantity:"); 411 | scanf("%d",&qty); 412 | f=qty*153; 413 | return f; 414 | break; 415 | case 2: 416 | printf("Enter Quantity:"); 417 | scanf("%d",&qty); 418 | f=qty*102; 419 | 420 | return f; 421 | break; 422 | case 3: 423 | printf("Enter Quantity:"); 424 | scanf("%d",&qty); 425 | 426 | f=qty*215; 427 | int bri; 428 | printf("If it is Bakrid or Ramzan click 26:"); 429 | scanf("%d",&bri); 430 | if(bri==26){ 431 | printf("As it is festival time you are getting 10 percent discount........."); 432 | f=f-(f*0.10); 433 | 434 | } 435 | return f; 436 | break; 437 | case 4: 438 | printf("Enter Quantity:"); 439 | scanf("%d",&qty); 440 | f=qty*78; 441 | return f; 442 | break; 443 | 444 | case 5: 445 | printf("Enter Quantity:"); 446 | scanf("%d",&qty); 447 | f=qty*310; 448 | return f; 449 | break; 450 | case 6: 451 | printf("Enter Quantity:"); 452 | scanf("%d",&qty); 453 | f=qty*200; 454 | int chri; 455 | printf("If it is christmas or newyear click 25:"); 456 | scanf("%d",&chri); 457 | if(chri==25){ 458 | printf("As it is festival time you are getting 20 percent discount........."); 459 | f=f-(f*0.20); 460 | 461 | } 462 | return f; 463 | break; 464 | case 7: 465 | printf("Enter Quantity:"); 466 | scanf("%d",&qty); 467 | f=qty*270; 468 | return f; 469 | break; 470 | case 8: 471 | printf("Enter Quantity:"); 472 | scanf("%d",&qty); 473 | f=qty*84; 474 | return f; 475 | break; 476 | case 9: 477 | printf("Enter Quantity:"); 478 | scanf("%d",&qty); 479 | f=qty*67; 480 | return f; 481 | break; 482 | case 10: 483 | printf("Enter Quantity:"); 484 | scanf("%d",&qty); 485 | f=qty*68; 486 | return f; 487 | break; 488 | 489 | case 11: 490 | return 0; 491 | default: 492 | printf("\nInvalid Product Selection"); 493 | break; 494 | } 495 | } 496 | 497 | 498 | while ((itemPrice = displayMenu()) != 0) { 499 | 500 | if (itemPrice > 0) { 501 | totalAmount += itemPrice; 502 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 503 | } else if (itemPrice < 0) { 504 | printf("Error occurred. Exiting...\n"); 505 | return 1; 506 | } else { 507 | printf("Thank you for using the Hotel Management System.\n"); 508 | } 509 | } 510 | 511 | printf("Your total bill is: $%.2f\n", totalAmount); 512 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 513 | return 0; 514 | } 515 | int me(){ 516 | int ch,qty,f; 517 | float itemPrice,totalAmount=0.0; 518 | printf("\n\tMENU CARD"); 519 | 520 | printf("\n\t\t1.MUSHROOM NOODLES Rs.150+Gst.3 = 153"); 521 | printf("\n\t\t2.BIRIYANI Rs.100+Gst.2 = 102"); 522 | printf("\n\t\t3.HOT CHILLI PANEER Rs.210+Gst.5 = 215"); 523 | printf("\n\t\t4.CHEESE GARLIC NAAN Rs.75+Gst.3 = 78"); 524 | printf("\n\t\t5.CHICKEN TANDOORI Rs.300+Gst.10 = 310"); 525 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 526 | printf("\n\t\t7.PRAWN CURRY Rs.250+Gst.20 = 270"); 527 | printf("\n\t\t8.JIGARTHANDA Rs.80+Gst.4 = 84"); 528 | printf("\n\t\t9.MILKSHAKE Rs.65+Gst.2 = 67"); 529 | printf("\n\t\t10.MOJITO Rs.65+Gst.3 = 68"); 530 | printf("\n\t\t11.Exit"); 531 | 532 | int displayMenu(){ 533 | printf("\n\nEnter Your choice : "); 534 | scanf("%d",&ch); 535 | switch (ch) { 536 | case 1: 537 | printf("Enter Quantity:"); 538 | scanf("%d",&qty); 539 | f=qty*153; 540 | return f; 541 | break; 542 | case 2: 543 | printf("Enter Quantity:"); 544 | scanf("%d",&qty); 545 | f=qty*102; 546 | int bri; 547 | printf("If it is Bakrid or Ramzan click 26:"); 548 | scanf("%d",&bri); 549 | if(bri==26){ 550 | printf("As it is festival time you are getting 10 percent discount........."); 551 | f=f-(f*0.10); 552 | 553 | } 554 | return f; 555 | break; 556 | case 3: 557 | printf("Enter Quantity:"); 558 | scanf("%d",&qty); 559 | f=qty*215; 560 | return f; 561 | break; 562 | case 4: 563 | printf("Enter Quantity:"); 564 | scanf("%d",&qty); 565 | f=qty*78; 566 | return f; 567 | break; 568 | 569 | case 5: 570 | printf("Enter Quantity:"); 571 | scanf("%d",&qty); 572 | f=qty*310; 573 | return f; 574 | break; 575 | case 6: 576 | printf("Enter Quantity:"); 577 | scanf("%d",&qty); 578 | f=qty*200; 579 | int chri; 580 | printf("If it is christmas or newyear click 25:"); 581 | scanf("%d",&chri); 582 | if(chri==25){ 583 | printf("As it is festival time you are getting 20 percent discount........."); 584 | f=f-(f*0.20); 585 | 586 | } 587 | return f; 588 | break; 589 | case 7: 590 | printf("Enter Quantity:"); 591 | scanf("%d",&qty); 592 | f=qty*270; 593 | return f; 594 | break; 595 | case 8: 596 | printf("Enter Quantity:"); 597 | scanf("%d",&qty); 598 | f=qty*84; 599 | return f; 600 | break; 601 | case 9: 602 | printf("Enter Quantity:"); 603 | scanf("%d",&qty); 604 | f=qty*67; 605 | return f; 606 | break; 607 | case 10: 608 | printf("Enter Quantity:"); 609 | scanf("%d",&qty); 610 | f=qty*68; 611 | return f; 612 | break; 613 | 614 | case 11: 615 | return 0; 616 | default: 617 | printf("\nInvalid Product Selection"); 618 | break; 619 | } 620 | } 621 | 622 | 623 | while ((itemPrice = displayMenu()) != 0) { 624 | 625 | if (itemPrice > 0) { 626 | totalAmount += itemPrice; 627 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 628 | } else if (itemPrice < 0) { 629 | printf("Error occurred. Exiting...\n"); 630 | return 1; 631 | } else { 632 | printf("Thank you for using the Hotel Management System.\n"); 633 | } 634 | } 635 | 636 | printf("Your total bill is: $%.2f\n", totalAmount); 637 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 638 | 639 | return 0; 640 | } 641 | int dindugal(){ 642 | int ch,qty,f; 643 | float itemPrice,totalAmount=0.0; 644 | printf("\n\tMENU CARD"); 645 | 646 | printf("\n\t\t1.MUSHROOM NOODLES Rs.150+Gst.3 = 153"); 647 | printf("\n\t\t2.BIRIYANI Rs.100+Gst.2 = 102"); 648 | printf("\n\t\t3.HOT CHILLI PANEER Rs.210+Gst.5 = 215"); 649 | printf("\n\t\t4.CHEESE GARLIC NAAN Rs.75+Gst.3 = 78"); 650 | printf("\n\t\t5.CHICKEN TANDOORI Rs.300+Gst.10 = 310"); 651 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 652 | printf("\n\t\t7.PRAWN CURRY Rs.250+Gst.20 = 270"); 653 | printf("\n\t\t8.JIGARTHANDA Rs.80+Gst.4 = 84"); 654 | printf("\n\t\t9.MILKSHAKE Rs.65+Gst.2 = 67"); 655 | printf("\n\t\t10.MOJITO Rs.65+Gst.3 = 68"); 656 | printf("\n\t\t11.Exit"); 657 | 658 | int displayMenu(){ 659 | printf("\n\nEnter Your choice : "); 660 | scanf("%d",&ch); 661 | switch (ch) { 662 | case 1: 663 | printf("Enter Quantity:"); 664 | scanf("%d",&qty); 665 | f=qty*153; 666 | return f; 667 | break; 668 | case 2: 669 | printf("Enter Quantity:"); 670 | scanf("%d",&qty); 671 | f=qty*102; 672 | int bri; 673 | printf("If it is Bakrid or Ramzan click 26:"); 674 | scanf("%d",&bri); 675 | if(bri==26){ 676 | printf("As it is festival time you are getting 10 percent discount........."); 677 | f=f-(f*0.10); 678 | 679 | } 680 | return f; 681 | break; 682 | case 3: 683 | printf("Enter Quantity:"); 684 | scanf("%d",&qty); 685 | f=qty*215; 686 | return f; 687 | break; 688 | case 4: 689 | printf("Enter Quantity:"); 690 | scanf("%d",&qty); 691 | f=qty*78; 692 | return f; 693 | break; 694 | 695 | case 5: 696 | printf("Enter Quantity:"); 697 | scanf("%d",&qty); 698 | f=qty*310; 699 | return f; 700 | break; 701 | case 6: 702 | printf("Enter Quantity:"); 703 | scanf("%d",&qty); 704 | f=qty*200; 705 | int chri; 706 | printf("If it is christmas or newyear click 25:"); 707 | scanf("%d",&chri); 708 | if(chri==25){ 709 | printf("As it is festival time you are getting 20 percent discount........."); 710 | f=f-(f*0.20); 711 | 712 | } 713 | return f; 714 | break; 715 | case 7: 716 | printf("Enter Quantity:"); 717 | scanf("%d",&qty); 718 | f=qty*270; 719 | return f; 720 | break; 721 | case 8: 722 | printf("Enter Quantity:"); 723 | scanf("%d",&qty); 724 | f=qty*84; 725 | return f; 726 | break; 727 | case 9: 728 | printf("Enter Quantity:"); 729 | scanf("%d",&qty); 730 | f=qty*67; 731 | return f; 732 | break; 733 | case 10: 734 | printf("Enter Quantity:"); 735 | scanf("%d",&qty); 736 | f=qty*68; 737 | return f; 738 | break; 739 | 740 | case 11: 741 | return 0; 742 | default: 743 | printf("\nInvalid Product Selection"); 744 | break; 745 | } 746 | } 747 | 748 | 749 | while ((itemPrice = displayMenu()) != 0) { 750 | 751 | if (itemPrice > 0) { 752 | totalAmount += itemPrice; 753 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 754 | } else if (itemPrice < 0) { 755 | printf("Error occurred. Exiting...\n"); 756 | return 1; 757 | } else { 758 | printf("Thank you for using the Hotel Management System.\n"); 759 | } 760 | } 761 | 762 | printf("Your total bill is: $%.2f\n", totalAmount); 763 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 764 | 765 | return 0; 766 | } 767 | int southern(){ 768 | int ch,qty,f; 769 | float itemPrice,totalAmount=0.0; 770 | printf("\n\tMENU CARD"); 771 | 772 | printf("\n\t\t1.MUSHROOM NOODLES Rs.150+Gst.3 = 153"); 773 | printf("\n\t\t2.BIRIYANI Rs.100+Gst.2 = 102"); 774 | printf("\n\t\t3.HOT CHILLI PANEER Rs.210+Gst.5 = 215"); 775 | printf("\n\t\t4.CHEESE GARLIC NAAN Rs.75+Gst.3 = 78"); 776 | printf("\n\t\t5.CHICKEN TANDOORI Rs.300+Gst.10 = 310"); 777 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 778 | printf("\n\t\t7.PRAWN CURRY Rs.250+Gst.20 = 270"); 779 | printf("\n\t\t8.JIGARTHANDA Rs.80+Gst.4 = 84"); 780 | printf("\n\t\t9.MILKSHAKE Rs.65+Gst.2 = 67"); 781 | printf("\n\t\t10.MOJITO Rs.65+Gst.3 = 68"); 782 | printf("\n\t\t11.Exit"); 783 | 784 | int displayMenu(){ 785 | printf("\n\nEnter Your choice : "); 786 | scanf("%d",&ch); 787 | switch (ch) { 788 | case 1: 789 | printf("Enter Quantity:"); 790 | scanf("%d",&qty); 791 | f=qty*153; 792 | return f; 793 | break; 794 | case 2: 795 | printf("Enter Quantity:"); 796 | scanf("%d",&qty); 797 | f=qty*102; 798 | int bri; 799 | printf("If it is Bakrid or Ramzan click 26:"); 800 | scanf("%d",&bri); 801 | if(bri==26){ 802 | printf("As it is festival time you are getting 10 percent discount........."); 803 | f=f-(f*0.10); 804 | 805 | } 806 | return f; 807 | break; 808 | case 3: 809 | printf("Enter Quantity:"); 810 | scanf("%d",&qty); 811 | f=qty*215; 812 | return f; 813 | break; 814 | case 4: 815 | printf("Enter Quantity:"); 816 | scanf("%d",&qty); 817 | f=qty*78; 818 | return f; 819 | break; 820 | 821 | case 5: 822 | printf("Enter Quantity:"); 823 | scanf("%d",&qty); 824 | f=qty*310; 825 | return f; 826 | break; 827 | case 6: 828 | printf("Enter Quantity:"); 829 | scanf("%d",&qty); 830 | f=qty*200; 831 | int chri; 832 | printf("If it is christmas or newyear click 25:"); 833 | scanf("%d",&chri); 834 | if(chri==25){ 835 | printf("As it is festival time you are getting 20 percent discount........."); 836 | f=f-(f*0.20); 837 | 838 | } 839 | return f; 840 | break; 841 | case 7: 842 | printf("Enter Quantity:"); 843 | scanf("%d",&qty); 844 | f=qty*270; 845 | return f; 846 | break; 847 | case 8: 848 | printf("Enter Quantity:"); 849 | scanf("%d",&qty); 850 | f=qty*84; 851 | return f; 852 | break; 853 | case 9: 854 | printf("Enter Quantity:"); 855 | scanf("%d",&qty); 856 | f=qty*67; 857 | return f; 858 | break; 859 | case 10: 860 | printf("Enter Quantity:"); 861 | scanf("%d",&qty); 862 | f=qty*68; 863 | return f; 864 | break; 865 | 866 | case 11: 867 | return 0; 868 | default: 869 | printf("\nInvalid Product Selection"); 870 | break; 871 | } 872 | } 873 | 874 | 875 | while ((itemPrice = displayMenu()) != 0) { 876 | 877 | if (itemPrice > 0) { 878 | totalAmount += itemPrice; 879 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 880 | } else if (itemPrice < 0) { 881 | printf("Error occurred. Exiting...\n"); 882 | return 1; 883 | } else { 884 | printf("Thank you for using the Hotel Management System.\n"); 885 | } 886 | } 887 | 888 | printf("Your total bill is: $%.2f\n", totalAmount); 889 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 890 | 891 | return 0; 892 | } 893 | int hamacho(){ 894 | int ch,qty,f; 895 | float itemPrice,totalAmount=0.0; 896 | printf("\n\tMENU CARD"); 897 | 898 | printf("\n\t\t1.TAMAGEYAKI Rs.150+Gst.3 = 153"); 899 | printf("\n\t\t2.UNAGI Rs.100+Gst.2 = 102"); 900 | printf("\n\t\t3.SASHIMI Rs.210+Gst.5 = 215"); 901 | printf("\n\t\t4.KASHIPAN Rs.75+Gst.3 = 78"); 902 | printf("\n\t\t5.GYOZA Rs.300+Gst.10 = 310"); 903 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 904 | printf("\n\t\t7.ULAGYU BEEF Rs.250+Gst.20 = 270"); 905 | printf("\n\t\t8.MIRO SOUP Rs.80+Gst.4 = 84"); 906 | printf("\n\t\t9.OKONOMIYAKI Rs.65+Gst.2 = 67"); 907 | printf("\n\t\t10.MIKUJAGA Rs.65+Gst.3 = 68"); 908 | printf("\n\t\t11.Exit"); 909 | 910 | int displayMenu(){ 911 | printf("\n\nEnter Your choice : "); 912 | scanf("%d",&ch); 913 | switch (ch) { 914 | case 1: 915 | printf("Enter Quantity:"); 916 | scanf("%d",&qty); 917 | f=qty*153; 918 | return f; 919 | break; 920 | case 2: 921 | printf("Enter Quantity:"); 922 | scanf("%d",&qty); 923 | f=qty*102; 924 | return f; 925 | break; 926 | case 3: 927 | printf("Enter Quantity:"); 928 | scanf("%d",&qty); 929 | f=qty*215; 930 | return f; 931 | break; 932 | case 4: 933 | printf("Enter Quantity:"); 934 | scanf("%d",&qty); 935 | f=qty*78; 936 | return f; 937 | break; 938 | 939 | case 5: 940 | printf("Enter Quantity:"); 941 | scanf("%d",&qty); 942 | f=qty*310; 943 | return f; 944 | break; 945 | case 6: 946 | printf("Enter Quantity:"); 947 | scanf("%d",&qty); 948 | f=qty*200; 949 | int chri; 950 | printf("If it is christmas or newyear click 25:"); 951 | scanf("%d",&chri); 952 | if(chri==25){ 953 | printf("As it is festival time you are getting 20 percent discount........."); 954 | f=f-(f*0.20); 955 | 956 | } 957 | return f; 958 | break; 959 | case 7: 960 | printf("Enter Quantity:"); 961 | scanf("%d",&qty); 962 | f=qty*270; 963 | return f; 964 | break; 965 | case 8: 966 | printf("Enter Quantity:"); 967 | scanf("%d",&qty); 968 | f=qty*84; 969 | return f; 970 | break; 971 | case 9: 972 | printf("Enter Quantity:"); 973 | scanf("%d",&qty); 974 | f=qty*67; 975 | return f; 976 | break; 977 | case 10: 978 | printf("Enter Quantity:"); 979 | scanf("%d",&qty); 980 | f=qty*68; 981 | return f; 982 | break; 983 | 984 | case 11: 985 | return 0; 986 | default: 987 | printf("\nInvalid Product Selection"); 988 | break; 989 | } 990 | } 991 | 992 | 993 | while ((itemPrice = displayMenu()) != 0) { 994 | 995 | if (itemPrice > 0) { 996 | totalAmount += itemPrice; 997 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 998 | } else if (itemPrice < 0) { 999 | printf("Error occurred. Exiting...\n"); 1000 | return 1; 1001 | } else { 1002 | printf("Thank you for using the Hotel Management System.\n"); 1003 | } 1004 | } 1005 | 1006 | printf("Your total bill is: $%.2f\n", totalAmount); 1007 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 1008 | 1009 | return 0; 1010 | } 1011 | int hilton(){ 1012 | int ch,qty,f; 1013 | float itemPrice,totalAmount=0.0; 1014 | printf("\n\tMENU CARD"); 1015 | 1016 | printf("\n\t\t1.SUSHI Rs.150+Gst.3 = 153"); 1017 | printf("\n\t\t2.SUKIYAKI Rs.100+Gst.2 = 102"); 1018 | printf("\n\t\t3.RAMEN Rs.210+Gst.5 = 215"); 1019 | printf("\n\t\t4.BUBBLE TEA Rs.75+Gst.3 = 78"); 1020 | printf("\n\t\t5.TEMPURA Rs.300+Gst.10 = 310"); 1021 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 1022 | printf("\n\t\t7.ODEN Rs.250+Gst.20 = 270"); 1023 | printf("\n\t\t8.ONIGIRI Rs.80+Gst.4 = 84"); 1024 | printf("\n\t\t9.TSUKEMEN Rs.65+Gst.2 = 67"); 1025 | printf("\n\t\t10.UNAGI Rs.65+Gst.3 = 68"); 1026 | printf("\n\t\t11.Exit"); 1027 | 1028 | int displayMenu(){ 1029 | printf("\n\nEnter Your choice : "); 1030 | scanf("%d",&ch); 1031 | switch (ch) { 1032 | case 1: 1033 | printf("Enter Quantity:"); 1034 | scanf("%d",&qty); 1035 | f=qty*153; 1036 | return f; 1037 | break; 1038 | case 2: 1039 | printf("Enter Quantity:"); 1040 | scanf("%d",&qty); 1041 | f=qty*102; 1042 | return f; 1043 | break; 1044 | case 3: 1045 | printf("Enter Quantity:"); 1046 | scanf("%d",&qty); 1047 | f=qty*215; 1048 | return f; 1049 | break; 1050 | case 4: 1051 | printf("Enter Quantity:"); 1052 | scanf("%d",&qty); 1053 | f=qty*78; 1054 | return f; 1055 | break; 1056 | 1057 | case 5: 1058 | printf("Enter Quantity:"); 1059 | scanf("%d",&qty); 1060 | f=qty*310; 1061 | return f; 1062 | break; 1063 | case 6: 1064 | printf("Enter Quantity:"); 1065 | scanf("%d",&qty); 1066 | f=qty*200; 1067 | int chri; 1068 | printf("If it is christmas or newyear click 25:"); 1069 | scanf("%d",&chri); 1070 | if(chri==25){ 1071 | printf("As it is festival time you are getting 20 percent discount........."); 1072 | f=f-(f*0.20); 1073 | 1074 | } 1075 | return f; 1076 | break; 1077 | case 7: 1078 | printf("Enter Quantity:"); 1079 | scanf("%d",&qty); 1080 | f=qty*270; 1081 | return f; 1082 | break; 1083 | case 8: 1084 | printf("Enter Quantity:"); 1085 | scanf("%d",&qty); 1086 | f=qty*84; 1087 | return f; 1088 | break; 1089 | case 9: 1090 | printf("Enter Quantity:"); 1091 | scanf("%d",&qty); 1092 | f=qty*67; 1093 | return f; 1094 | break; 1095 | case 10: 1096 | printf("Enter Quantity:"); 1097 | scanf("%d",&qty); 1098 | f=qty*68; 1099 | return f; 1100 | break; 1101 | 1102 | case 11: 1103 | return 0; 1104 | default: 1105 | printf("\nInvalid Product Selection"); 1106 | break; 1107 | } 1108 | } 1109 | 1110 | 1111 | while ((itemPrice = displayMenu()) != 0) { 1112 | 1113 | if (itemPrice > 0) { 1114 | totalAmount += itemPrice; 1115 | // printf("Item added to the bill. Current total: $%.2f\n", totalAmount); 1116 | } else if (itemPrice < 0) { 1117 | printf("Error occurred. Exiting...\n"); 1118 | return 1; 1119 | } else { 1120 | printf("Thank you for using the Hotel Management System.\n"); 1121 | } 1122 | } 1123 | 1124 | printf("Your total bill is: $%.2f\n", totalAmount); 1125 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 1126 | 1127 | return 0; 1128 | } 1129 | int aman(){ 1130 | int ch,qty,f; 1131 | float itemPrice,totalAmount=0.0; 1132 | printf("\n\tMENU CARD"); 1133 | 1134 | printf("\n\t\t1.TENDON Rs.150+Gst.3 = 153"); 1135 | printf("\n\t\t2.NATTO Rs.100+Gst.2 = 102"); 1136 | printf("\n\t\t3.GYOZA Rs.210+Gst.5 = 215"); 1137 | printf("\n\t\t4.TOFU CURRY Rs.75+Gst.3 = 78"); 1138 | printf("\n\t\t5.ODEN Rs.300+Gst.10 = 310"); 1139 | printf("\n\t\t6.CAKE Rs.190+Gst.10 = 200"); 1140 | printf("\n\t\t7.MENTAIKO Rs.250+Gst.20 = 270"); 1141 | printf("\n\t\t8.TONKASTU Rs.80+Gst.4 = 84"); 1142 | printf("\n\t\t9.MONJAYAKI Rs.65+Gst.2 = 67"); 1143 | printf("\n\t\t10.DONBURI Rs.65+Gst.3 = 68"); 1144 | printf("\n\t\t11.Exit"); 1145 | 1146 | int displayMenu(){ 1147 | printf("\n\nEnter Your choice : "); 1148 | scanf("%d",&ch); 1149 | switch (ch) { 1150 | case 1: 1151 | printf("Enter Quantity:"); 1152 | scanf("%d",&qty); 1153 | f=qty*153; 1154 | return f; 1155 | break; 1156 | case 2: 1157 | printf("Enter Quantity:"); 1158 | scanf("%d",&qty); 1159 | f=qty*102; 1160 | return f; 1161 | break; 1162 | case 3: 1163 | printf("Enter Quantity:"); 1164 | scanf("%d",&qty); 1165 | f=qty*215; 1166 | return f; 1167 | break; 1168 | case 4: 1169 | printf("Enter Quantity:"); 1170 | scanf("%d",&qty); 1171 | f=qty*78; 1172 | return f; 1173 | break; 1174 | 1175 | case 5: 1176 | printf("Enter Quantity:"); 1177 | scanf("%d",&qty); 1178 | f=qty*310; 1179 | return f; 1180 | break; 1181 | case 6: 1182 | printf("Enter Quantity:"); 1183 | scanf("%d",&qty); 1184 | f=qty*200; 1185 | int chri; 1186 | printf("If it is christmas or newyear click 25:"); 1187 | scanf("%d",&chri); 1188 | if(chri==25){ 1189 | printf("As it is festival time you are getting 20 percent discount........."); 1190 | f=f-(f*0.20); 1191 | 1192 | } 1193 | return f; 1194 | break; 1195 | case 7: 1196 | printf("Enter Quantity:"); 1197 | scanf("%d",&qty); 1198 | f=qty*270; 1199 | return f; 1200 | break; 1201 | case 8: 1202 | printf("Enter Quantity:"); 1203 | scanf("%d",&qty); 1204 | f=qty*84; 1205 | return f; 1206 | break; 1207 | case 9: 1208 | printf("Enter Quantity:"); 1209 | scanf("%d",&qty); 1210 | f=qty*67; 1211 | return f; 1212 | break; 1213 | case 10: 1214 | printf("Enter Quantity:"); 1215 | scanf("%d",&qty); 1216 | f=qty*68; 1217 | return f; 1218 | break; 1219 | 1220 | case 11: 1221 | return 0; 1222 | 1223 | 1224 | default: 1225 | printf("\nInvalid Product Selection"); 1226 | break; 1227 | } 1228 | } 1229 | 1230 | 1231 | while ((itemPrice = displayMenu()) != 0) { 1232 | 1233 | if (itemPrice > 0) { 1234 | totalAmount += itemPrice; 1235 | 1236 | } else if (itemPrice < 0) { 1237 | printf("Error occurred. Exiting...\n"); 1238 | return 1; 1239 | } else { 1240 | printf("Thank you for using the Hotel Management System.\n"); 1241 | } 1242 | 1243 | } 1244 | printf("Your total bill is: $%.2f\n", totalAmount); 1245 | printf("...............................THANK YOU FOR VISITING US !!......................................"); 1246 | 1247 | 1248 | 1249 | return 0; 1250 | } 1251 | 1252 | --------------------------------------------------------------------------------