Download: https://solutionzip.com/downloads/lab18a/
1. Write a program named Lab18A that will play Blackjack.
a. Define an enumerated type, cards, that has the values ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING. (Do this just above the function prototypes, before all the functions.)
b. Create an integer function called housePlay that will return a random integer between 2 and 21. (No parameters) (Note: put your srand(time(0)) statement at the beginning of the main function, and only do it once.)
c. Create an integer function named randomPick that will return a random number between 1 & 13. (No parameters)
d. Create a void function named drawTheCard that will accept a cards parameter and will draw the card for that value. (Sample cards shown below.)
e. Create an integer function named getPoints that will accept a cards value as a parameter and return the number of points for that card. (ACE = 1, JACK/QUEEN/KING = 10, all other cards = their face value)
f. Create a void functi