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 30

    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();  

            }

        }

    }

  • EmilroyEmilroy Member

    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();
            }
        }
    }
    


Sign In or Register to comment.