Advertisement
desislava_topuzakova

8. Cinema Ticket

Jan 23rd, 2022
730
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     string dayOfWeek;
  7.     cin >> dayOfWeek;
  8.  
  9.     //Monday or Tuesday or Friday -> 12
  10.     //Wednesday or Thursday -> 14
  11.     //Saturday or Sunday -> 16
  12.     if (dayOfWeek == "Monday" || dayOfWeek == "Tuesday" || dayOfWeek == "Friday")
  13.     {
  14.         cout << 12 << endl;
  15.     }
  16.     else if (dayOfWeek == "Wednesday" || dayOfWeek == "Thursday")
  17.     {
  18.         cout << 14 << endl;
  19.     }
  20.     else if (dayOfWeek == "Saturday" || dayOfWeek == "Sunday")
  21.     {
  22.         cout << 16 << endl;
  23.     }
  24.  
  25.     return 0;
  26. }
  27.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement