Lab goals: Ultimately, you will author a program capable of determiningvarious p
ID: 3610420 • Letter: L
Question
Lab goals:Ultimately, you will author a program capable of determiningvarious probabilities of a card deck (e.g. odds of drawing two ofthe same card). The following lists what must be done to completethis task.
1. Use and record the five step process as described in yourtextbook, beginning on page 26.
2. Design and implement a Card and Deck class
3. Use these classes to write tests which experimentally validatethe probabilities of drawing different card combinations.
The problem to be completed in this lab is to develop a program tocompare the analytical probability of an event with the simulationresults. For this lab, the event is drawing a flush (five cardswhich are all the same suit). The user will be allowed to enter thenumber of experiments to be used in the simulation.
Any help is greatly appreciated! Thank you.
Explanation / Answer
please rate - thanks I'm not sure what you're looking for at this point - but thisshould get you started. It deals four hands of 5 cards each-no cards are duplicated #include using namespace std; int main() {bool cards[4][13]; int hands[4][5][2]; string suit[4]={"hearts","diamonds","spades","clubs"}; stringcard[13]={"ace","2","3","4","5","6","7","8","9","10","jack","queen","king"}; int i,j,num,type; for(i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.