Advertisement
khisby

[SOAL10]Bread_machine

Oct 9th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.46 KB | None | 0 0
  1. // Khisby Al Ghofari, 06.2017.1.06852, Kelas B
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     char bread,loaf,baking;
  9.     cout << "\n===============================\n";
  10.     cout << "Welcome To \n";
  11.     cout << "Application Bread Machine Control\n";
  12.     cout << "=================================\n \n";
  13.  
  14.     cout << "Choose Bread\n";
  15.     cout << "Enter W for White,Enter S for Sweat \n";
  16.     cout << "Input your choose : ";
  17.     cin >> bread;
  18.  
  19.     cout << "\nChoose Loaf Size\n";
  20.     cout << "Enter N for normal size,Enter D for Double size \n";
  21.     cout << "Input your choose : ";
  22.     cin >> loaf;
  23.  
  24.     cout << "Choose Baking\n";
  25.     cout << "Enter A for Auto,Enter M for Manual \n";
  26.     cout << "Input your choose : ";
  27.     cin >> baking;
  28.  
  29.     cout << "\n\n";
  30.  
  31.     if(bread == 'w' || bread == 'W'){
  32.         cout << "Primary Kneading is 15 min \n";
  33.     }else if(bread == 's' || bread == 'S'){
  34.         cout << "Primary Kneading is 20 min \n";
  35.     }
  36.  
  37.     if(bread == 'w' || bread == 'W'){
  38.         cout << "Primary Rising is 60 min \n";
  39.     }else if(bread == 's' || bread == 'S'){
  40.         cout << "Primary Rising is 60 min \n";
  41.     }
  42.  
  43.     if(bread == 'w' || bread == 'W'){
  44.         cout << "Secondary Kneading is 18 min \n";
  45.     }else if(bread == 's' || bread == 'S'){
  46.         cout << "Secondary Kneading is 33 min \n";
  47.     }
  48.  
  49.     if(bread == 'w' || bread == 'W'){
  50.         cout << "Secondary Rising is 20 min \n";
  51.     }else if(bread == 's' || bread == 'S'){
  52.         cout << "Secondary Rising is 30 min \n";
  53.     }
  54.  
  55.     if(bread == 'w' || bread == 'W'){
  56.         cout << "Loaf Shiping 2 Second \n";
  57.     }else if(bread == 's' || bread == 'S'){
  58.         cout << "Loaf Shiping 2 Second \n";
  59.     }
  60.  
  61.     if(baking== 'm' || baking == 'M'){
  62.         cout << "Stop! Remove the dough for manual baking \n";
  63.     }else if(baking== 'a' || baking == 'A'){
  64.         cout << "Final Rising 75 Min \n";
  65.  
  66.         if((loaf == 'n' || loaf == 'N')&&(bread == 'w' || bread == 'W')){
  67.             cout << "Baking 45 Min \n";
  68.         }else if((loaf == 'd' || loaf == 'D')&&(bread == 'w' || bread == 'W')){
  69.             cout << "Baking 67 Min 30 Second \n";
  70.         }else if((loaf == 'n' || loaf == 'N')&&(bread == 's' || bread == 'S')){
  71.             cout << "Baking 35 Min \n";
  72.         }else if((loaf == 'd' || loaf == 'D')&&(bread == 's' || bread == 'S')){
  73.             cout << "Baking 52 Min 30 Second \n";
  74.         }
  75.  
  76.         cout << "Cooling 30 Min \n";
  77.     }
  78.  
  79.  
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement