Question: Write a program that simulates picking a card from a deck of 52 cards. Your program should display the rank (Ace, 2,3,4,5,6,7,8,9,10,Jack, Queen, King) and
Hint: The algorithm to generate a random number between a range is: int randNum (int)(Math.random() (MAX-MIN+1)) MIN The flowchart is shown below. False Would you lke to pick a card? YN and 13 into variable choioe" variable number between 0 and 3 " of Hearts True False suit 1 ol Jack " False stop False Trub 12Queen False suit 3 of Spades True -13 "King
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
