Alur Restaurant
Classy bistro adalah sebuah restaurant prancis berbintang 5
dengan banyak mendapat berbagai penghargaan. Restaurant ini memperkerjakan
tenaga-tenaga professional dari luar maupun lokal. Restaurant ini berdiri sudah
17 tahun dan bertemakan klasik restaurant. Untuk harga dari restaurant ini
memang mahal akan tetapi sebanding dengan rasa yang diciptakannya. Restaurant
ini dapat dipakai untuk santai dengan keluarga, dan biasa di pakai untuk
meeting kantor, wedding party serta event-event lainnya. Restaurant ini
berlokasi di plaza Indonesia ground floor Jakarta Pusat, open at 09:00 until
22:00.
Flowchart Tentang Restaurant ini .
#include<conio.h>
#include<stdio.h>
#include<string.h>
main()
{
int menu1,menu2,jmkn,jmnm;
char mkn[10],mnm[10];
float hg1,hg2,tp;
printf (" ======================= WELCOME BISTRO CLASSY =======================\n\n\n\n");
printf (" Bistro classy serves classic French Bistro favorites, highlighting the authentic yet homestyle French dishes. ");
printf (" This is French comfort food, served in a casual and cozy decor..\n\n");
printf("=================================\n");
printf("Our Menu Breakfast\n");
printf("=================================\n");
printf("1. La Tartine\n");
printf("2. Le Panier Set\n");
printf("3. Pain Perdu/French Toast\n");
printf("4. Pancake\n");
printf("\n");
printf("=================================\n");
printf("Our Shakes, Smoothies, & Slushes \n");
printf("=================================\n");
printf("1. Cabana Fresh\n");
printf("2. Peach Nectar Fluff\n");
printf("3. Berry Milk\n");
printf("4. Milkshake\n");
printf("\n");
printf("Choose Your Breakfast = ");scanf("%i",&menu1);
printf("Total Breakfat = ");scanf("%d",&jmkn);
printf("Choose Your Beverages = ");scanf("%i",&menu2);
printf("Total Beverages = ");scanf("%d",&jmnm);
switch(menu1)
{
case 1:
strcpy(mkn,"La Tartine");
hg1=100000;
break;
case 2:
strcpy(mkn,"Le Panier");
hg1=200000;
break;
case 3:
strcpy(mkn,"French Toast");
hg1=300000;
break;
case 4:
strcpy(mkn,"Pancake");
hg1=50000;
break;
}
switch(menu2)
{
case 1:
strcpy(mnm,"Cabana Fresh");
hg2=89000;
break;
case 2:
strcpy(mnm,"Peach Nectar Fluff");
hg2=100000;
break;
case 3:
strcpy(mnm,"Berry Milk");
hg2=50000;
break;
case 4:
strcpy(mnm,"Milkshake");
hg2=50000;
break;
}
tp=jmkn*hg1+jmnm*hg2;
printf("\nThe Breakfast %s",mkn);printf(" Harga Rp.%5.f",hg1);printf(" Jumlah %i",jmkn);
printf("\nThe Beverages %s",mnm);printf("Harga Rp.%5.f",hg2);printf(" Jumlah %i",jmnm);
printf("\n=============================\n");
printf("Total Payment = Rp.%5.f",tp);
printf("\n=============================\n");
getch();
}
SCREENSHOT
Tidak ada komentar:
Posting Komentar