LCCC Course CIS 210 - Java Programming

Program 9 - TenCard class

Each student is to create a copy of their HighCard game called TenCard.java and make the following modifications:

  1. 10 buttons on the screen (5 in first row, 5 in second row) that do everything that the first two buttons in HighCard.java did (i.e. clicking on the button gets a new card from the deck & puts a new image on the button)
  2. Two buttons on the bottom:
    a) The first button is to sort the deck
    b) The second button is to shuffle the deck.
  3. Comment each method correctly.
  4. Be prepared to show your instructor your working program at the start of class within 1 week

Bonus Assignment:

1. Include another button that "flips" all of the cards so that the all buttons will show only the back of the cards' images
2. Use two arrays of 5 Buttons rather than 10 different Button variables

 

 

www.lc.edu

Last Updated: January, 2011