Question: Code a Java program to deal cards to a user: You will ask the user how many cards (limited to 4 cards) they want. (You
Code a Java program to deal cards to a user:
- You will ask the user how many cards (limited to 4 cards) they want.
(You do NOT need to be concerned with the suit (spades, hearts, diamonds, clubs). You only need to account for 13 possible cards: Ace, 2 10, Jack, Queen, and King)
- Use the BEST type of loop to deal the cards.
- Use a switch() statement for the case of Jack, Queen, King and Ace.
- Add an outer loop to process the next player.
- Stop looping when there are no more players.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
