Advertisement
kagemaro

Project Uas

Jan 6th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.45 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <iostream.h>
  4. #include <iomanip.h>
  5. title()
  6. {
  7.     cout<<"              Grillicious"<<endl;
  8.     cout<<"         Yummy Grills and More"<<endl;
  9.     cout<<"      ==========================="<<endl;
  10.     }
  11. garis()
  12. {
  13. cout<<"======================================";
  14. }
  15. menu(){
  16.     cout<<"*********************************************"<<endl;
  17.     cout<<"**               List Menu                 **"<<endl;
  18.     cout<<"*********************************************"<<endl;
  19.     cout<<"** Meal                                    **"<<endl;
  20.     cout<<"** Sosis Ayam Bakar         : Rp.10000 -,  **"<<endl;
  21.     cout<<"** Sosis Sapi Bakar         : Rp.12000 -,  **"<<endl;
  22.     cout<<"** Sosis Black Papper Bakar : Rp.11000 -,  **"<<endl;
  23.     cout<<"** Sosis Cheese Bakar       : Rp.13000 -,  **"<<endl;
  24.     cout<<"** Bakso Bakar              : Rp.8000 -,   **"<<endl;
  25.     cout<<"**                                         **"<<endl;
  26.     cout<<"** Beverages                               **"<<endl;
  27.     cout<<"** Coke/S/M/L               : Rp.5K/7K/9K-,**"<<endl;
  28.     cout<<"** Ice Tea                  : Rp.5000-,    **"<<endl;
  29.     cout<<"** Water                    : Rp.3000-,    **"<<endl;
  30.     cout<<"**                                         **"<<endl;
  31.     cout<<"*********************************************"<<endl;
  32.     }
  33.  
  34.  
  35. main()
  36. {
  37. int input;
  38.  
  39.  
  40. //Tampilan Awal
  41. title();
  42.     cout<<"Welcome to Grillicious Yummy Grills and More"<<endl;
  43.     cout<<"Choose your menu to work: "<<endl;
  44.     cout<<"1.Input Menu"<<endl;
  45.     cout<<"2.Logout"<<endl;
  46.     garis();
  47.     cout<<"\nInput here : ";
  48.     cin>>input;endl;
  49.     if(input==1){
  50.     goto menu;}
  51.     else{
  52.     return 0;}
  53. //Tampilan input
  54. menu:
  55. clrscr();
  56. int jp,m,jm,i;
  57. char nama[20];
  58.  
  59. title();
  60. menu();
  61.     cout<<"Nama Pelangggan: ";
  62.     cin>>nama;endl;
  63.     cout<<"Input Jumlah Pesanan: ";
  64.     cin>>jp;endl;
  65.     cout<<"Input Menu: ";
  66.     cin>>m;endl;
  67.     cout<<"Input Jumlah Menu :";
  68.     cin>>jm;endl;
  69.  
  70. for(i=1;i<=jp;i++)
  71.     cout<<"Order -"<<i<<endl;
  72.  
  73. //Tampilan Output
  74. char bill[5][5];
  75. int item[8];
  76. int price[8];
  77. int qty[8];
  78. clrscr();
  79. title();
  80.     cout<<"Nama Pelanggan :"<<nama<<endl;
  81.     cout<<"Daftar menu yang dipesan"<<endl;
  82.     cout<<"========================================"<<endl;
  83.     cout<<"No     Item     Price     Qty     Total "<<endl;
  84.     cout<<"========================================"<<endl;
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.     getch();
  93.  
  94.  
  95.  
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement