Advertisement
jasperlow

Untitled

Feb 13th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. #include<stdio.h>
  2. // #include<conio.h>
  3. #include<stdlib.h>
  4. #include<string.h>
  5. #include<ctype.h>
  6.  
  7. void admin() {
  8. printf("DEBUG: admin()");
  9. // char pass[21];
  10. // int ploop = 1;
  11. // int in = 1;
  12. // int pass1;
  13. // system("cls");
  14. // for(ploop = 1; ploop<=in;) {
  15. // printf("Enter Password: ");
  16. // scanf_s("%s",&pass);
  17. // pass1 = strcmpi(pass, "admin");
  18. // if (pass1 == 0)
  19. // {
  20. // system("cls");
  21. // in = 0;
  22. // printf("Password Confirm \n\n\n");
  23. // admin2();
  24. // } else {
  25. // system("cls");
  26. // in = 1;
  27. // printf("Access Denied \n\n\n");
  28. // }
  29. // }
  30. }
  31.  
  32. void admin2() {
  33. printf("DEBUG: admin2()");
  34. // int i,w;
  35. // int item_code[20] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
  36. // int item_code2;
  37. // printf("Welcome: Admin \n\n");
  38. // printf("MENU");
  39. // printf("What would you like to order:\n");
  40. // printf("Food/Price\n");
  41. // printf("[1]Fried Chicken/P160 \n");
  42. // printf("[2]Spaghetti/P150\n");
  43. // printf("[3]Beef Steak/P120\n");
  44. // printf("[4]Pork Chop/P100\n");
  45. // printf("[5]Longanisa/P190\n");
  46. // printf("[6]Fried Bangus/P180\n");
  47. // printf("[7]Roast Chicken/P100\n");
  48. // printf("[8]Sharkfin/P170\n");
  49. // printf("[9]Beef Tapa/P140\n");
  50. // printf("[10]BBQ Chicken/P190\n");
  51. // printf("[11]Calamari/P180\n");
  52. // printf("[12]Beef Salpicao/P110\n");
  53. // printf("[13]Fried Rice/P170\n");
  54. // printf("[14]Tempura/P190\n");
  55. // printf("[15]Cream Dory/P100\n");
  56. // printf("[16]Jellyfish/P120\n");
  57. // printf("[17]Lechon/P300\n");
  58. // printf("[18]Mash Potato/P150\n");
  59. // printf("[19]Halo-Halo/P120\n");
  60. // printf("[20]Lecheflan/P140\n");
  61. // printf("Please enter how many orders do you want: ");
  62. // scanf("%d",&w);
  63. // for(int j=0;j<w;j++)
  64. // {
  65. // printf("Enter Item Code: ");
  66. // scanf("%d",&item_code2);
  67. // }
  68. // for(i=0;i<w;i++)
  69. // {
  70. // printf("%d",item_code2);
  71. // }
  72. }
  73.  
  74. void cashier() {
  75. }
  76.  
  77. void server() {
  78. }
  79.  
  80. int main() {
  81. int choice;
  82. // system("cls");
  83. printf("\t \t \t WELCOME TO BON'S ORDERING SYSTEM \n");
  84. printf("[1] Admin \n");
  85. printf("[2] Cashier \n");
  86. printf("[3] Server \n");
  87. printf("[4] Waitress \n");
  88. printf("[5] Hostess \n");
  89. printf("Please Enter Your Choice: ");
  90. scanf("%d",&choice);
  91. switch(choice) {
  92. case 1:
  93. printf("DEBUG:: Choice 1"); // Check Value, Delete This Line Later
  94. // admin();
  95. break;
  96. }
  97. // system("PAUSE");
  98. return 0;
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement