Question: Write a Java program that generates a random integer in the range 0 - 5 1 . This value will representplaying card. Print a text

Write a Java program that generates a random integer in the range 0-51. This value will representplaying card. Print a text description of the card using the parameters below.Cards 0-12 are spades.Cards 13-25 are hearts.Cards 26-38 are clubs.Cards 39-51 are diamonds.Card 0 is an Ace. Card 1 is a Two. Card 2 is a Three and so on. Card 10 is a jack. Card 11 is aqueen. Card 12 is a king.Example output of your program will look something like:Ace of Spades

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!