R Studio coder required. Posting a test for competence. -- 2

Job ID: 33689159

Budget: $10 – $30 USD

Requirement:
1) Create cards (1-13)
2) Joe picks a card
3) Friend(s) pick a card
4) Did Joe win?
5) Repeat steps 2-4 a number of times
6) Report proportion of Joe wins as a percentage
Only the numerical value of the card with Ace = 1, Jack = 11, Queen = 12, King = 13
Ignore the suit of the card
At start, ask user for (1) how many friends play with Joe, (2) choose to replace card or not after each trial.

I require code and output as two Word documents.
Related categories: R Programming Language Coding Programming