C# For Technical Writers: Programming Exercises

Week 4

  1. Write a program that reads the file http://www.io.com/~wasson/names.txt into a list, sorts the list, and then displays each name (in order) in the console window.
  2. Suppose you are writing a program to simulate a card game. For this program, you want to create a class named CardDeck that represents a single deck of cards. Make a list of the following:

    This problem does not require writing any code. Also, I am not looking for a very extensive list.

    Note: A standard "Anglo-American" card deck contains 52 cards. There are four suits: diamonds, spades, hearts, and clubs. Within each suit, there are nine numbered cards (2 through 10), three face cards (king, queen, and jack), and one ace card. For more information, see http://en.wikipedia.org/wiki/Playing_cards#Anglo-American-French.

For problem #2, please email your answers to me before class, or else bring to them to the next class, and we will use them for an in-class exercise. (However, the homework is optional.)


Main Page