Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <iostream.h>
- #include <iomanip.h>
- title()
- {
- cout<<" Grillicious"<<endl;
- cout<<" Yummy Grills and More"<<endl;
- cout<<" ==========================="<<endl;
- }
- garis()
- {
- cout<<"======================================";
- }
- menu(){
- cout<<"*********************************************"<<endl;
- cout<<"** List Menu **"<<endl;
- cout<<"*********************************************"<<endl;
- cout<<"** Meal **"<<endl;
- cout<<"** Sosis Ayam Bakar : Rp.10000 -, **"<<endl;
- cout<<"** Sosis Sapi Bakar : Rp.12000 -, **"<<endl;
- cout<<"** Sosis Black Papper Bakar : Rp.11000 -, **"<<endl;
- cout<<"** Sosis Cheese Bakar : Rp.13000 -, **"<<endl;
- cout<<"** Bakso Bakar : Rp.8000 -, **"<<endl;
- cout<<"** **"<<endl;
- cout<<"** Beverages **"<<endl;
- cout<<"** Coke/S/M/L : Rp.5K/7K/9K-,**"<<endl;
- cout<<"** Ice Tea : Rp.5000-, **"<<endl;
- cout<<"** Water : Rp.3000-, **"<<endl;
- cout<<"** **"<<endl;
- cout<<"*********************************************"<<endl;
- }
- main()
- {
- int input;
- //Tampilan Awal
- title();
- cout<<"Welcome to Grillicious Yummy Grills and More"<<endl;
- cout<<"Choose your menu to work: "<<endl;
- cout<<"1.Input Menu"<<endl;
- cout<<"2.Logout"<<endl;
- garis();
- cout<<"\nInput here : ";
- cin>>input;endl;
- if(input==1){
- goto menu;}
- else{
- return 0;}
- //Tampilan input
- menu:
- clrscr();
- int jp,m,jm,i;
- char nama[20];
- title();
- menu();
- cout<<"Nama Pelangggan: ";
- cin>>nama;endl;
- cout<<"Input Jumlah Pesanan: ";
- cin>>jp;endl;
- cout<<"Input Menu: ";
- cin>>m;endl;
- cout<<"Input Jumlah Menu :";
- cin>>jm;endl;
- for(i=1;i<=jp;i++)
- cout<<"Order -"<<i<<endl;
- //Tampilan Output
- char bill[5][5];
- int item[8];
- int price[8];
- int qty[8];
- clrscr();
- title();
- cout<<"Nama Pelanggan :"<<nama<<endl;
- cout<<"Daftar menu yang dipesan"<<endl;
- cout<<"========================================"<<endl;
- cout<<"No Item Price Qty Total "<<endl;
- cout<<"========================================"<<endl;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement