fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. #include <cctype>
  5.  
  6. int main() {
  7. std::string selection;
  8. std::string genre;
  9.  
  10. std::cout <<"Welcome to HBO Max, The one place to watch any of your favourites, on the go.\n";
  11. std::cout <<"Simply pick a Genre, and we will pick something from our catalogue for you to watch.\n";
  12. std::cout <<"Now, Movie or TV Show?\n";
  13. std::getline (std::cin, selection);
  14.  
  15. /*I used getline due to the fact that TV show is two words, if I were to use the normal
  16.   std:cin, it would have only read until
  17.   TV, instead of both words. */
  18.  
  19.  
  20. std::cout <<"What Genre do you wish to watch?";
  21. std::cin >> genre;
  22.  
  23. if (selection == "Movie") {
  24. if (genre == "Comedy") {
  25. std::cout << "Movie Suggestion: A Minecraft Movie\n";
  26. std::cout << "Blurb: Four misfits are suddenly pulled through a mysterious portal into a bizarre, cubic wonderland that thrives on imagination";
  27. }
  28. else if (genre == "Romance") {
  29. std::cout << "Movie Suggestion: In the Mood For Love\n";
  30. std::cout << "Blurb: Two neighbors form a strong bond after both suspect extramarital activities of their spouses. However, they agree to keep their bond platonic so as not to commit similar wrongs.";
  31.  
  32. }
  33. else if (genre == "Fantasy") {
  34. std::cout << "Movie Suggestion: The Hobbit: An Unexpected Journey\n";
  35. std::cout << "Blurb: A reluctant Hobbit, Bilbo Baggins, sets out to the Lonely Mountain with a spirited group of dwarves to reclaim their mountain home and the gold within it from the dragon Smaug.";
  36.  
  37. }
  38. else {
  39. std::cout << "My apologies, that genre is still under works.";
  40.  
  41. }
  42.  
  43. }
  44. else if (selection == "TV Show") {
  45. if (genre == "Comedy") {
  46. std::cout << "TV Show Suggestion: Silicon Valley\n";
  47. std::cout << "Blurb: Follows the struggle of Richard Hendricks, a Silicon Valley engineer trying to build his own company called Pied Piper.";
  48.  
  49. }
  50. else if (genre == "Romance") {
  51. std::cout << "TV Show Suggestion: The Gilded Age\n";
  52. std::cout << "Marian Brook, a rural girl, moves to New York after her father's death. However, things get complicated when she must assimilate into the clan of a railroad tycoon.";
  53.  
  54. }
  55. else if (genre == "Fantasy") {
  56. std::cout << "TV Show Suggestion: Game of Thrones\n";
  57. std::cout << "Nine noble families wage war against each other in order to gain control over the mythical land of Westeros. Meanwhile, a force is rising after millenniums and threatens the existence of living men.";
  58.  
  59. }
  60. else {
  61. std::cout << "My apologies, that genre is still under works.";
  62.  
  63. }
  64. }
  65. else {
  66. std::cout << "Sorry, I can only suggest Movies or TV shows.";
  67. }
  68.  
  69. return 0;
  70.  
  71. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Welcome to HBO Max, The one place to watch any of your favourites, on the go.
Simply pick a Genre, and we will pick something from our catalogue for you to watch.
Now, Movie or TV Show?
What Genre do you wish to watch?Sorry, I can only suggest Movies or TV shows.