In C Programming
EXERCISE NAME: ASCII Card
Write a program that randomly generates a card from a standard deck of playing cards.
Remember, cards in a standard playing deck have the following properties: Suits - Hearts, Diamonds, Spades, Clubs; Rank - A, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King.
When the program is run, it must prompt the user to press enter to generate a random card. When the user presses enter, the program must randomly generate a playing card. Add a loop to allow the user to continue generating new cards each time enter is pressed.
An example of the program is as follows:
Press enter to generate a random card
DIAMONDS
Use the following C programming language and library features: Input Output Functions, Enumeration, Structures, Modulus, rand, Pointers, malloc, free.
You may make your program's output look different from the example above, as long as it exhibits the required functionality.
Ensure your source code compiles and follows good programming standards. Ensure your program is well tested.