Guest User

Untitled

a guest
Feb 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace dogrun
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string narrative()
  14. {
  15. Console.Clear();
  16. Console.WriteLine("Running out of the house you run into the mailman walking up the driveway");
  17. Console.WriteLine("1. Run pass him");
  18. Console.WriteLine("2. greet him with a \"hello\"");
  19. return Console.ReadLine();
  20. }
  21.  
  22. string narativesnooze()
  23. {
  24. Console.WriteLine("you Press snooze but wake up 9 min later with a even stronger craving for a gas station hotdog");
  25. Console.WriteLine("1. Press Snooz again");
  26. Console.WriteLine("2. Get dressed quickly and take off.");
  27. return Console.ReadLine();
  28. }
  29.  
  30. string name;
  31. string choice;
  32.  
  33. Console.WriteLine("Welcome to the craving!");
  34. Console.WriteLine("Please ener name:");
  35. name = Console.ReadLine();
  36. Console.Clear();
  37.  
  38. Console.WriteLine("Hello {0}!", name);
  39. Console.WriteLine("Press enter to start");
  40. Console.ReadLine();
  41. Console.Clear();
  42.  
  43. Console.WriteLine("You open your eyes not remembering the dream you were just experiencing. You have a crazy craving for a gas station hot dog.");
  44. Console.WriteLine("1. Get dressed quickly and take off.");
  45. Console.WriteLine("2. Go back to sleep.");
  46. choice = Console.ReadLine(); //needed a variable choice to record input
  47.  
  48. if (choice == "1")
  49. {
  50. choice = narrative();
  51. }
  52.  
  53. if (choice == "2")
  54. {
  55. choice = narativesnooze();
  56. }
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Console.ReadLine();
  64.  
  65.  
  66.  
  67.  
  68. }
  69. }
  70. }
Add Comment
Please, Sign In to add comment