Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008
    Location
    41° 28′ 56″ N, 81° 40′ 11″ W
    Posts
    2,399

    Made a small program to drive you crazy.

    See if you like this little practical joke of a program. It'll beep at you 20 times and count along the way. Could be annoying, but I made it because I thought it would be a cool early April Fool's Day joke. Enjoy!

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace ConsoleApplication5
    {
        class Program
        {
            static void Main(string[] args)
            {
                InitializeScreen.CallClear();
            }
        }
    
        class InitializeScreen
        {
           public static void CallClear()
            {
                Console.BackgroundColor = ConsoleColor.Green;
                Console.ForegroundColor = ConsoleColor.Black;
                Console.Clear();
               TimeBeeper.BeepTick();
            }
        }
    
        class TimeBeeper
        {
            public static void BeepTick()
            {
                Console.WriteLine("The following timer will beep 20 times and count along the way.");
                Console.WriteLine("Please press any key to start:  ");
                Console.ReadKey();
    
                for (var timer = 0; timer < 21; timer++)
                {
                    Console.WriteLine("Beep # {0}", timer);
                    Console.Beep();
                }
    
                Console.WriteLine("The beep counter has now ended, please press any key to quit the program.");
                Console.ReadKey();
            }
        }
    }
    PC Specs: Antec 900 ATX Case, Gigabyte 790GX Mobo, AMD Phenom II x4 955, Corsair HX620W PSU, Corsair Vengeance 16GB (4x4GB) DDR3-1600, EVGA GTX 680 2GB GDDR5, 3D Vision Kit 2, LG 8x Blu-ray Burner, Intel X25-M SSD, 500GB+640GB WD Caviar Blacks, Win 7 Pro x64, DAS Pro K/B, MX518 Mouse, Logitech Z-2300 Speakers, Toshiba 32TL515U 32" 3DTV, Wacom Bamboo Fun Large Tablet.

  2. #2
    Join Date
    Oct 2011
    Posts
    547
    @WedgeBob
    Looks nice.
    - Try tying the time (like making it beat at a given interval of seconds) to this
    - Try making it change the color after each beat to another color.

    Code:
    TimeBeeper.BeepTick();
    This would have been better outside of the CallClear method. Try to make method do one thing and the name given to it to represent that.
    ex of what you are doing: Making Save method also do the Formating and Printing

    I think you realized this but wanted the main method to call just one thing. I say this because of the spacing difference.

    Good luck with your future endeavors.

  3. #3
    Join Date
    Nov 2008
    Location
    41° 28′ 56″ N, 81° 40′ 11″ W
    Posts
    2,399
    Yeah, I know. I only did this because I had some spare time on my hands since I got the Blender assignment complete sooner than I thought I would. Although I'm sure Nelson's probably gonna wonder why I didn't sign up for the C# 101 class, probably...but at least I'm in the Blender class, so it's all good. I'll probably get back into serious programming when I feel the time is right. Right now, 3D modeling seems to be something I've been wanting to pick up for a while, so I'll get through that, then see where I go after this.
    Last edited by WedgeBob; 03-24-2012 at 02:30 PM.
    PC Specs: Antec 900 ATX Case, Gigabyte 790GX Mobo, AMD Phenom II x4 955, Corsair HX620W PSU, Corsair Vengeance 16GB (4x4GB) DDR3-1600, EVGA GTX 680 2GB GDDR5, 3D Vision Kit 2, LG 8x Blu-ray Burner, Intel X25-M SSD, 500GB+640GB WD Caviar Blacks, Win 7 Pro x64, DAS Pro K/B, MX518 Mouse, Logitech Z-2300 Speakers, Toshiba 32TL515U 32" 3DTV, Wacom Bamboo Fun Large Tablet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •