LAB 5 USING CLASSES AND OBJECTS TO DEAL CARDS (revisited)
(Due before class on March 28, 2007) The following assignment is intended to enhance your understanding of the basics of Java programming including the use of classes and objects as well as conditionals and loops. Be sure to review Java Language Guidelines before you start on this assignment. [Post the solution in WebCT by 9:00 a.m. Wednesday March 28, 2007.]
YOU MUST DO YOUR OWN WORK!!!
Your task is to write a program that displays a collection of playing cards. Keep displaying cards until three (3) hearts are displayed or the ace of spades is displayed. Display the image of the playing card (your choice [be creative]) with the text below the image.
Ace of spades
The values of the cards are to be randomly generated. You will need to declare a class Card.
HINT: You should use two Enumerated Types to represent the face-value and suit of the two cards. Be sure to properly document your program.
Grades are determined using the following scale: