Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Focus
- {
- class Program
- {
- static void Main(string[] args)
- {
- String answer = "none";
- if (args[0].Contains("What is the novel about"))
- answer = "about";
- if (args[0].Contains("Who is the main character"))
- answer = "main";
- if (args[0].Contains("Where does the novel take place"))
- answer = "place";
- if (args[0].Contains("Who is Jacob Marley"))
- answer = "Jacob Marley";
- if (args[0].Contains("What is Bob Cratchit to Tim Cratchit"))
- answer = "Bob Cratchit";
- if (args[0].Contains("Where does Ebeneezer Scrooge live"))
- answer = "live";
- if (args[0].Contains("What does Ebeneezer Scrooge do in the novel"))
- answer = "do";
- if (args[0].Contains("What is London, Scrooge & Marley"))
- answer = "London";
- if (args[0].Contains("What relationship is between Jacob Marley and Bob Cratchit"))
- answer = "relationship";
- if (args[0].Contains("What does Tim Cratchit do"))
- answer = "do";
- if (args[0].Contains("Who asks for the Christmas day off"))
- answer = "Christmas day";
- if (args[0].Contains("Who shows Scrooge two starved children"))
- answer = "children";
- if (args[0].Contains("Who visits Bob Cratchit"))
- answer = "Bob Cratchit";
- if (args[0].Contains("Who are the main characters"))
- answer = "characters";
- if (args[0].Contains("Where does the novel take place"))
- answer = "place";
- if (args[0].Contains("How does it begin"))
- answer = "begin";
- if (args[0].Contains("Who is Myrtle Wilson"))
- answer = "Myrtle Wilson";
- if (args[0].Contains("Who is Myrtle Wilson to George Wilson"))
- answer = "Myrtle Wilson";
- if (args[0].Contains("Where does Myrtle Wilson live"))
- answer = "live";
- if (args[0].Contains("What happened in 1917"))
- answer = "1917";
- if (args[0].Contains("Who allows Daisy to ride with Gatsby"))
- answer = "allows";
- if (args[0].Contains("Who is married to George Wilson"))
- answer = "married";
- if (args[0].Contains("Who commits suicide"))
- answer = "suicide";
- if (args[0].Contains("What does Tom Buchanan do"))
- answer = "Tom Buchanan";
- if (args[0].Contains("Who dies"))
- answer = "dies";
- if (args[0].Contains("Where is the Plaza Hotel"))
- answer = "Plaza Hotel";
- using (System.IO.StreamWriter file = new System.IO.StreamWriter("focus.xml"))
- {
- file.WriteLine("<focus>" + answer + "</focus>");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment