Guest User

Untitled

a guest
May 20th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Focus
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. String answer = "none";
  13.  
  14. if (args[0].Contains("What is the novel about"))
  15. answer = "about";
  16. if (args[0].Contains("Who is the main character"))
  17. answer = "main";
  18. if (args[0].Contains("Where does the novel take place"))
  19. answer = "place";
  20. if (args[0].Contains("Who is Jacob Marley"))
  21. answer = "Jacob Marley";
  22. if (args[0].Contains("What is Bob Cratchit to Tim Cratchit"))
  23. answer = "Bob Cratchit";
  24. if (args[0].Contains("Where does Ebeneezer Scrooge live"))
  25. answer = "live";
  26. if (args[0].Contains("What does Ebeneezer Scrooge do in the novel"))
  27. answer = "do";
  28. if (args[0].Contains("What is London, Scrooge & Marley"))
  29. answer = "London";
  30. if (args[0].Contains("What relationship is between Jacob Marley and Bob Cratchit"))
  31. answer = "relationship";
  32. if (args[0].Contains("What does Tim Cratchit do"))
  33. answer = "do";
  34. if (args[0].Contains("Who asks for the Christmas day off"))
  35. answer = "Christmas day";
  36. if (args[0].Contains("Who shows Scrooge two starved children"))
  37. answer = "children";
  38. if (args[0].Contains("Who visits Bob Cratchit"))
  39. answer = "Bob Cratchit";
  40. if (args[0].Contains("Who are the main characters"))
  41. answer = "characters";
  42. if (args[0].Contains("Where does the novel take place"))
  43. answer = "place";
  44. if (args[0].Contains("How does it begin"))
  45. answer = "begin";
  46. if (args[0].Contains("Who is Myrtle Wilson"))
  47. answer = "Myrtle Wilson";
  48. if (args[0].Contains("Who is Myrtle Wilson to George Wilson"))
  49. answer = "Myrtle Wilson";
  50. if (args[0].Contains("Where does Myrtle Wilson live"))
  51. answer = "live";
  52. if (args[0].Contains("What happened in 1917"))
  53. answer = "1917";
  54. if (args[0].Contains("Who allows Daisy to ride with Gatsby"))
  55. answer = "allows";
  56. if (args[0].Contains("Who is married to George Wilson"))
  57. answer = "married";
  58. if (args[0].Contains("Who commits suicide"))
  59. answer = "suicide";
  60. if (args[0].Contains("What does Tom Buchanan do"))
  61. answer = "Tom Buchanan";
  62. if (args[0].Contains("Who dies"))
  63. answer = "dies";
  64. if (args[0].Contains("Where is the Plaza Hotel"))
  65. answer = "Plaza Hotel";
  66. using (System.IO.StreamWriter file = new System.IO.StreamWriter("focus.xml"))
  67. {
  68. file.WriteLine("<focus>" + answer + "</focus>");
  69. }
  70.  
  71. }
  72. }
  73. }
Add Comment
Please, Sign In to add comment