Пример #1
0
        }     // \Run Menu

        public void CreateStory(int select)
        {
            List <string> words    = new List <string>();
            int           selector = select;

            switch (selector) //Our questions
            {
            case 1:
                words = NewtStory1.Story();
                break;

            case 2:
                words = NewtStory2.Story();
                break;

            case 3:
                words = NewtStory3.Story();
                break;
                //case 4:
                //    words = NewtStory4.Story();
                //    break;
                //case 5:
                //    words = NewtStory5.Story();
                //    break;
                //case 6:
                //    words = NewtStory6.Story();
                //    break;
            }


            var storyComplete = new Dictionary <int, string>()
            {
                {
                    1, $"This morning {words[0]} woke up feeling {words[7]}. 'It is going to be a {words[2]} day!'\n" +
                    $"Outside, a bunch of {words[5]} were protesting to keep {words[6]} in stores. They began to sway \n" +
                    $"to the rhythm of the {words[3]}, which made all the {words[5]} very {words[4]}. Concerned, {words[0]} \n" +
                    $"texted {words[1]}, who flew to {words[8]} and dropped {words[6]} in a puddle of frozen {words[9]}. \n" +
                    $"{words[1]} woke up in the year {words[10]}, in a world where {words[5]} ruled the world."
                },
                {
                    2, $"YESTERDAY morning {words[0]} woke up feeling {words[7]}. 'It is going to be a {words[2]} day!'\n" +
                    $"Outside, a bunch of {words[5]} were protesting to keep {words[6]} in stores. They began to sway \n" +
                    $"to the rhythm of the {words[3]}, which made all the {words[5]} very {words[4]}. Concerned, {words[0]} \n" +
                    $"texted {words[1]}, who flew to {words[8]} and dropped {words[6]} in a puddle of frozen {words[9]}. \n" +
                    $"{words[1]} woke up in the year {words[10]}, in a world where {words[5]} ruled the world."
                }
            };

            Console.WriteLine(storyComplete[selector]);
            Console.WriteLine();
            Console.ReadLine();
            Console.Clear();
        } // \createStory
Пример #2
0
        }     // \Run Menu

        public void CreateStory(int select)
        {
            List <string> words = new List <string>();

            int selector = select;

            switch (selector) //Our questions
            {
            case 1:

                words = NewtStory1.Story();
                Console.Clear();

                Console.WriteLine($"This morning {words[0]} woke up feeling {words[7]}. 'It is going to be a {words[2]} day!'\n" +
                                  $"Outside, a bunch of {words[5]} were protesting to keep {words[6]} in stores. They began to sway \n" +
                                  $"to the rhythm of the {words[3]}, which made all the {words[5]} very {words[4]}. Concerned, {words[0]} \n" +
                                  $"texted {words[1]}, who flew to {words[8]} and dropped {words[6]} in a puddle of frozen {words[9]}. \n" +
                                  $"{words[1]} woke up in the year {words[10]}, in a world where {words[5]} ruled the world.");
                Console.WriteLine($"\n\n   -- Click any key to return to the main menu --");
                break;

            case 2:

                words = NewtStory2.Story();
                Console.Clear();
                Console.WriteLine($"The {words[0]} virus is affecting {words[1]} of people around the {words[2]}.\n" +
                                  $"The outbreak was first identified in {words[3]} and was recognized as a pandemic by the World \n" +
                                  $"{words[4]} Organization on March ll. lt is also called COVID-19, which is an abbreviation \n" +
                                  $"for {words[5]} {words[6]} {words[7]} {words[8]} {words[9]}.\n" +
                                  $"\nThe virus is mainly spread during close contact when people {words[10]} or {words[11]}. People can also \n" +
                                  $"catch it by touching a contaminated surface and then touching their {words[12]}. Common symptoms \n" +
                                  $"include {words[13]} and a {words[14]} throat. However, you may have the virus without showing any of these \n" +
                                  $"symptoms, so it is important to heed the precautions even if you think you are well. {words[15]} \n" +
                                  $"people are particularly vulnerable to the virus. \n" +
                                  $"\nAs a society, out of love for others, we are working to flatten the curve. To do so, social \n" +
                                  $"distancing is very important. We must all stay in our {words[16]} unless we have essential things to do \n" +
                                  $"like {words[17]} groceries. If we are outside for essential activities or exercise, it is critical \n" +
                                  $"to keep six {words[18]} away from people.\n" +
                                  $"\nlt is also very important to wash your {words[19]} very often. I try to do so {words[20]} times per day\n" +
                                  $"and each time it should last 20 {words[21]}.To help me wash for enough time, I sing {words[22]}.\n" +
                                  $"lt’s also important to not touch your {words[23]} or {words[24]} and if you need to cough, please do not \n" +
                                  $"cough into your hand, but instead into your {words[25]}. When greeting people, you can no longer \n" +
                                  $"shake {words[26]}. Instead, we suggest {words[27]} from a distance and yelling {words[28]}.\n" +
                                  $"\nWidespread panic has spurred panic buying. ln particular, people love to buy quarantine snacks and {words[29]}.\n" +
                                  $"\nWe are so thankful for our healthcare and other essential workers. They are heroes like {words[30]}.");
                Console.WriteLine($"\n\n   -- Click any key to return to the main menu --");
                break;

            case 3:

                words = NewtStory3.Story();
                Console.Clear();
                Console.WriteLine($"It was during the battle of {words[0]} when I was running through a {words[1]} when a {words[2]} went off right next to my platoon. \n" +
                                  $"{words[3]}, our commanding officer, yelled for us to {words[4]} to the nearest {words[5]} we could find. When we got to the \n" +
                                  $" {words[5]} we had to start a {words[6]}. As we were starting the fire the enemy saw the {words[7]} from the fire and started {words[8]} at us. \n" +
                                  $"\nWe all quickly ducked behind the {words[9]} and returned fire. we quickly eliminated the enemy and were {words[10]} that we \n" +
                                  $" had won the battle.");
                Console.WriteLine($"\n\n   -- Click any key to return to the main menu --");
                break;

            case 4:

                words = NewtStory4.Story();
                Console.Clear();
                Console.WriteLine($"Once upon a time there was a {words[0]}. It had {words[1]} {words[2]}! One day it met {words[3]} on the side of the\n " +
                                  $"{words[4]}, they were {words[5]}. It was very { words[6]}; they both looked like hobos! All of a sudden they started singing\n" +
                                  $"\"{words[7]}\" really loudly.\n\n" +
                                  $" Then we started {words[8]} with {words[9]}. They looked really {words[10]}!");
                Console.WriteLine($"\n\n   -- Click any key to return to the main menu --");
                break;

            case 5:

                words = NewtStory5.Story();
                Console.Clear();
                Console.WriteLine($" I am currently enrolled in a Software Development class. It's much more {words[0]} than I thought it would be.\n" +
                                  $"The instructor is very {words[1]} when it comes to teaching. My favorite LA is {words[2]}, he helps the most. {words[3]} \n" +
                                  $"is the smartest student, {words[4]} puts the most time into studying, {words[5]} is always sharing the best resources. {words[6]} \n" +
                                  $"seems to be what we always get off topic about, but after a little bit of {words[7]}, we always get back on track.\n" +
                                  $"\n\nI can't wait  to graduate, I'm going to go to {words[8]} to celebrate!!");
                Console.WriteLine($"\n\n   -- Click any key to return to the main menu --");
                break;

            case 6:

                words = NewtStory6.Story();
                Console.Clear();
                Console.WriteLine($"A vacation is when you take a trip to some {words[0]} place with your {words[1]} family. A good vacation place\n" +
                                  $"is one where you can ride {words[2]}, and play a game like {words[3]}. I like to spend my time {words[4]} or {words[5]}. Parents\n" +
                                  $"need vacations more than kids because parents are always very {words[6]} and because they have to work {words[7]} hours every\n" +
                                  $"day all year long making enough {words[8]} to pay for the vacation.");
                Console.WriteLine($"\n\n   -- Click any key to return to the main menu --");
                break;
            }



            // For some reason this does not work IF any of the Lists have a different number of elements.
            // Throws an out of range exception
            // Try to find someone on staff who might understand why this is happening.
            // 2/20/2021 - R Westmoreland

            //var storyComplete = new Dictionary<int, string>()
            //{
            //    {
            //       1, $"This morning {words[0]} woke up feeling {words[7]}. 'It is going to be a {words[2]} day!'\n" +
            //    $"Outside, a bunch of {words[5]} were protesting to keep {words[6]} in stores. They began to sway \n" +
            //    $"to the rhythm of the {words[3]}, which made all the {words[5]} very {words[4]}. Concerned, {words[0]} \n" +
            //    $"texted {words[1]}, who flew to {words[8]} and dropped {words[6]} in a puddle of frozen {words[9]}. \n" +
            //    $"{words[1]} woke up in the year {words[10]}, in a world where {words[5]} ruled the world."
            //    },
            //    {
            //       2, $"The {words[0]} virus is affecting {words[1]} of people around the {words[2]}.\n" +
            //       $"The outbreak was first identified in {words[3]} and was recognized as a pandemic by the World \n" +
            //       $"{words[4]} Organization on March ll. lt is also called COVID-19, which is an abbreviation \n" +
            //       $"for {words[5]} {words[6]} {words[7]} {words[8]} {words[9]}.\n"

            //    },

            //    {
            //        3, $"It was during the battle of {words[0]} when I was running through a {words[1]} when a {words[2]} went off right next to my platoon. \n" +
            //        $"{words[3]}, our commanding officer, yelled for us to {words[4]} to the nearest {words[5]} we could find. When we got to the \n" +
            //        $" {words[5]} we had to start a {words[6]}. As we were starting the fire the enemy saw the {words[7]} from the fire and started {words[8]} at us. \n" +
            //        $"We all quickly ducked behind the {words[9]} and returned fire. we quickly eliminated the enemy and were {words[10]} that we \n" +
            //        $" had won the battle."
            //    },
            //    {
            //        4, $" Once upon a time there was a {words[0]}. It had {words[1]} {words[2]}! One day it met {words[3]}on the side of the {words[4]},they were {words[5]}.\n" +
            //        $" It was very {words[6]}; they both looked like hobos! All of the sudden they started singing {words[7]}really loudly.\n" +
            //        $" Then we started {words[8]}with {words[9]}. They looked really {words[10]}!"
            //    },
            //    {
            //      5, $" I am currently enrolled in a Software Development class. It's much more {words[0]} than I thought it would be.\n" +
            //      $"The instructor is very {words[1]} when it comes to teaching. My favorite LA is {words[2]}, he helps the most. {words[3]} \n" +
            //      $"is the smartest student, {words[4]} puts the most time into studying, {words[5]} is always sharing the best resources. {words[6]} \n" +
            //      $"seems to be what we always get off topic about, but after a little bit of {words[7]}, we always get back on track. I can't wait \n" +
            //      $"to graduate, I'm going to go to {words[8]} to celebrate!!"
            //    },
            //    {
            //      6, $"A vacation is when you take a trip to some {words[0]} place with your {words[1]} family. A good vacation place is one where you can ride {words[2]}, and play {words[3]} game. I like to spend my time {words[4]} or {words[5]}. Parents need vacations more than kids because parents are always very {words[6]} and because they have to work {words[7]} hours every day all year long making enough {words[8]} to pay for the vacation."
            //    }
            //};

            //Console.WriteLine("Here is your story...\n" + storyComplete[selector]);
            Console.WriteLine();

            Console.ReadLine();
            Console.Clear();
        } // \createStory