c# console challenge. setting the console window size and title use all programming practices,...

3
C# CONSOLE CHALLENGE

Upload: homer-casey

Post on 04-Jan-2016

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: C# CONSOLE CHALLENGE. Setting the Console Window Size and Title Use all programming practices, include proper casing and comments in your code. Using

C# CONSOLE CHALLENGE

Page 2: C# CONSOLE CHALLENGE. Setting the Console Window Size and Title Use all programming practices, include proper casing and comments in your code. Using

2

Setting the Console Window Size and Title

• Use all programming practices, include proper casing and comments in your code.

• Using Console.SetWindowSize change to console size:• Several different sizes• to a constantly changing size

Using Console.Title change the title of the console• To your name• To change the length of title

• bonus make the length constantly change.

Page 3: C# CONSOLE CHALLENGE. Setting the Console Window Size and Title Use all programming practices, include proper casing and comments in your code. Using

3

Fun with Beeping

• Change the frequency of console.beep with the keyboard.• Use keystrokes – Console.Readkey to alter the beep

• For example: UpArrow and DownArrow

• Define a keystroke to end the program• Use static methods for increasing and decreasing

duration and frequency• Use a switch statement in do\while to monitor the

ConsoleKey.