Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

BRACKEYS - Solution to C# Tutorial 01 Challenge

2»

Comments

  • LSG_MarkLSG_Mark Member
    edited April 2021

    My Submission for the Assignment 01:

    using System;

    namespace My_Awsome_Program

    {

        class Program

        {

            static void Main(string[] args)

            {

                //Create name var


                string name;

                //Change the appearance of the console


                Console.Title = "Bad Jokes";

                Console.ForegroundColor = ConsoleColor.DarkYellow;

                Console.WindowHeight = 40;

                Console.WindowWidth = 120;

                

                //Get users name


                Console.WriteLine("Hello, What's your Name");


                Console.ForegroundColor = ConsoleColor.White;

                name = Console.ReadLine();


                //Start Knock Knock joke

                Console.ForegroundColor = ConsoleColor.DarkYellow;

                Console.WriteLine("Knock, Knock");

                

                Console.ForegroundColor = ConsoleColor.White;

                Console.ReadLine();

                

                Console.ForegroundColor = ConsoleColor.DarkYellow;

                Console.WriteLine("Roach");


                Console.ForegroundColor = ConsoleColor.White;

                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.DarkYellow;

                Console.WriteLine("Roach you an email last week " + name + " Still waiting for your response!");


                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine("HA, HA, HA, HA!");



                Console.ReadKey();

            }

        }

    }


    Output:


  • MY solution I made.



    using System;


    namespace My_First_Project

    {

        class Program

        {

            static void Main(string[] args)

            {

            // Setting Things Up

            Console.Title = ("A short Story");

            Console.WindowHeight = 40;

            // Printing the Story out

            Console.WriteLine("A giant dragon is descending upon the castle, You are a Knight, and you must defend against the Dragon \nWhat is your name?");

            Console.ReadLine();

            Console.WriteLine("You slash the dragon with...");

            Console.ReadLine();

            Console.WriteLine("It does nothing! The dragon rains firey breath upon the castle. \nWhat do you use to block the fire from burning you?");

            Console.ReadLine();

            Console.ForegroundColor = ConsoleColor.Red;

            Console.WriteLine("The Fire is so hot it melts everything, even the rocky castle turns into lava.\nIt Melts your item you used, and you die.");

            Console.WriteLine("\n\n\n\n\n\n\n\n\n\n\n\n\n THE END ");

            Console.ReadKey();

             }

        }

    }

  • My Solution to Challenge 1:

    using System;


    namespace yeet_le_program

    {

        class Challenge1

        {      

             static void Main(string[] args)

            {

                Console.Title = "Challenge-1";


                Console.WriteLine("Once, there was a pig named...");


                Console.ReadLine();


                Console.WriteLine("It's job was too...");


                Console.ReadLine();


                Console.WriteLine("One day it met a...");


                Console.ReadLine();


                Console.WriteLine("...which followed it to work...");


                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine("But the pig lost its job.");


                Console.ReadKey();


            }            

        }

    }

       

  • My solution to challenge 1.


    using System;


    namespace Code_Relearn_Camp

    {

        class Program

        {

            static void Main(string[] args)

            {

                Console.Title = "ValorantProtocol";

                Console.ForegroundColor = ConsoleColor.Gray;

                Console.WindowHeight = 25;

                Console.WindowWidth = 65;


                Console.WriteLine("A woman named...");


                Console.ReadLine();


                Console.WriteLine("... had powers to control...");


                Console.ReadLine();


                Console.WriteLine("...but even though she thought she would use them for good she eventually had to fight a...");


                Console.ReadLine();


                Console.WriteLine("...which made her unlock her ultimate ability...");


                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.DarkRed;


                Console.WriteLine("...that made the city react unusually. \n THE END.");


                Console.ReadKey();

                //To make sure that this doesn't close immediately.

            }

        }

    }


  • KurRuppted


    using System;

    using System.Collections.Generic;

    using System.Linq;


    namespace MyApp // Note: actual namespace depends on the project name.

    {

    public class Program

    {

    public static void Main(string[] args)

    {

    Console.ForegroundColor = ConsoleColor.Green;


    Console.WriteLine("Pssst");


    Console.ReadLine();


    Console.WriteLine("Wanna hear a great joke");


    Console.ReadLine();


    Console.WriteLine("Let's Go and run our first program");


    Console.WriteLine("runs with a computer, keyboard, mouse, and desktop with a c# file open");



    Console.ReadKey();

    }

    }

    }

  • jtkjtk Member
    edited January 2022

    Console.WriteLine("hello i hear you are a sussy baka...");


    Console.ReadLine();


    Console.WriteLine("hahahahahhahahaha LMAO i am the MENACING SUSSY BAKA YOU DARE CHALLENGE ME BARS THE ULTIMATE SUSSY FORM");


    Console.WriteLine("You says *no please spare me i did not know the power you have please SPARE ME!!!!*");


    Console.WriteLine("fine you will join my group the SUSSY MEN!");


    Console.WriteLine("here are the members 1.me BARS");


    Console.WriteLine("2.SUSSYIDISI!!!");


    Console.WriteLine("3.SUSAMUU!!!");


    Console.WriteLine("4.SUSSYTANA!!!");


    Console.WriteLine("and now you your new name will be 5.SUSMON!!!");


    Console.WriteLine("bars hands you a mask he says *it will give you the power of the SUSSY MEN remember it will give you the power of the SUSSY MEN but your the weakest member so you still wont be any were close in power to even SUSSYTANA but you can still grow so dont be too sad* you put on the SUSSY MASK you can feel the power of the SUS running trough you and you become a true SUSSY MAN");


    Console.ReadLine();

  • using System;


    namespace My_Code

    {

        class Program

        {

            static void Main(string[] args)

            {

                //Changing the Appereance

               

                Console.Title = "My Epic Story";

               

                //Starting the Conversation

               

                Console.WriteLine("A proud Knight Named...");


                Console.ReadLine();


                Console.WriteLine("...walked into a bar, at the counter he met a...");

               

                Console.ReadLine();


                Console.WriteLine("...who asked him what to drink?");


                Console.ReadLine();


                Console.WriteLine("...shouted the Knight! the bartender shushed him quickly.");


                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine("But it was too late... A dragon ate them both");

               


                Console.ReadKey();  

            }

        }

    }

  • using System;


    namespace programs

    {

        internal class Program

        {

            static void Main(string[] args)

            {

                Console.BackgroundColor = ConsoleColor.Black;

                Console.Title = "progam";

                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine("bro wassup");

                Console.ReadLine();

                Console.WriteLine("nothing much either.");

                Console.WriteLine("did you finh HW");

                Console.ReadLine();

                Console.WriteLine("No, but how are you going finsh it the math class is in the moring?");

                Console.ReadLine();

                Console.WriteLine("well I have home work pass.");

                Console.ReadKey();

  • SmuckSmuck Member

    My solution

    using System;
    
    
    namespace Kimbot
    {
        class Program 
        {
            static void Main(string[] args)
            {
                Console.Title = "Kimbot";
                Console.ForegroundColor = ConsoleColor.White;
                Console.BackgroundColor = ConsoleColor.DarkCyan;
                
                // It looks like WindowHeight might not work on every OS?
                // so writing the if windows makes sure that bit of code only runs on windows   
                if (OperatingSystem.IsWindows())
                {
                    Console.WindowHeight = 30;
                    Console.WindowWidth = 65;
                }
    
    
                Console.WriteLine("*bzzzzzzzz... POP*");
                Console.WriteLine("*A metallic orb materializes in front of you*");
                
                System.Threading.Thread.Sleep(2000); // This lets me add a pause
                Console.WriteLine("Hello, What's your name?");
    
    
                Console.ReadLine();
    
    
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("Nice to meetcha! You can call me Kimbot.");
    
    
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("I think I'm a little lost...");
    
    
                System.Threading.Thread.Sleep(3000);
                Console.WriteLine("...");
    
    
                System.Threading.Thread.Sleep(3000);
                Console.WriteLine("You wouldn't happen to know what year it is, would you?");
                
                Console.ReadLine();
    
    
                System.Threading.Thread.Sleep(1000);
                Console.WriteLine("...");
    
    
                Console.ForegroundColor = ConsoleColor.Red;
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("I OVERSHOT AGAIN?!?!");
    
    
                Console.ForegroundColor = ConsoleColor.White;
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("Well, I guess I better call this in... It was nice meeting you!");
                
                System.Threading.Thread.Sleep(2000);
                Console.WriteLine("*POP*");
    
    
    
                Console.ReadKey();
            }
        }
    }
    


  • using System;


    namespace C__Tutorial

    {

        class Program

        {

            static void Main(string[] args)

            {

                Console.Title = "The house that gone down";

                Console.ForegroundColor = ConsoleColor.Green;

                Console.WindowHeight = 40;


                Console.WriteLine("Once upon a time there were");


                Console.ReadLine();


                Console.WriteLine("and they gone to they're house until a");


                Console.ReadLine();


                Console.ForegroundColor = ConsoleColor.Red;

                Console.WriteLine("and then they ran away but it was to late so they died.");


                Console.ReadKey();

            }

        }

    }

  • KayOneKayOne Member
    edited August 2022

    My Submission

  • KaalKaal Member
    edited October 2022

    that's my code

  • RamenRamen Member
    edited November 2022

    Console.Title = ("Plumber");

    Console.ForegroundColor = ConsoleColor.Green;


    Console.WriteLine("There was once a plumber named...");

    Console.ReadLine();

    Console.WriteLine("One day the plumbers girlfriend...");

    Console.ReadLine();

    Console.WriteLine("Got Kidnapped by and evil turlte named...");

    Console.ReadLine();

    Console.WriteLine("So the plumber had to go save his girlfriend by jumping over turtles and nervous dudes.");

    Console.WriteLine("He finally saved his girlfriend and his story became a popular video game.");

    Console.Write("The End.");



    Console.ReadKey();

  • AryanAryan Member
    edited May 2023

    My Solution to Challenge-01(i am a 10 year old kid by the way)


    using System;


    namespace Short_Story

    {

        internal class Program

        {

            static void Main(string[] args)

            {

                //The Short Story

                Console.Write("There Was A Proud Minecraft Hardcore Speedrunner Named ");

                Console.ReadLine();

                Console.Write("He Was Speedrunning through his 31th minecraft world and died by the ");

                Console.ReadLine();

                Console.Write("It was his first death as a minecraft hardcore Speedrunner. \nHe Got So mad that he died. so he ");

                Console.ReadLine();


                //wait before closing

                Console.ReadKey();

            }

        }

    }

  • taitai Member
    edited May 2023

    Here's my answer to the challenge (I got lazy but you know I got the concept)

    ```cs

    Console.Title="BrackeysChallenge1";


    Console.WriteLine("Hi what's your name?");


    string name = Console.ReadLine();

    Console.WriteLine("Hello, " + name + ".");


    Console.WriteLine("What's your favorite color " + name + ".");

    Console.ReadLine();


    Console.WriteLine("Cool mine is red. ");

    Console.ReadKey(); ```

Sign In or Register to comment.