subject

In javasolve the following problem using arrays: past a: coupon collector is a classic statistic problem with many practical applications. the problem is to pick objects from a set of objects repeatedly and determine how many picks are needed for all the objects to be picked at least once. a variation of the problem is to pick cards from a shuffled deck of 52 cards repeatedly and find out how many picks are needed before you see one of each suit. assume a picked card is placed back in the deck before picking another. write a program to simulate the number of picks needed to get total of four cards from each different suit and display the four cards picked (it is possible that a card may be picked twice). here is a sample run of the program: queen of spades5 of clubsqueen of hearts4 of diamondsnumber of picks: 12sample run explanation: as you see in the above run, 12 picks are made to get the four cards from different suits. the other 8 picks (12-4=8) were from the same previously picked suits, so they are not printed. so we continue picking a card until we see at least one card from each of the for suits. note: the card pick is with replacement, meaning that when you pick a card from the deck of 52 card, you put it back in the deck. there is chance to see the previously selected card again. part b: put part a in a for loop and repeat it 10,000 times and report the average number of total picks we should have to see 4 cards from different suits.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
What are the 4 basic items that are traded throughout the world?
Answers: 1
You know the right answer?
In javasolve the following problem using arrays: past a: coupon collector is a classic statistic pr...
Questions
question
Chemistry, 30.08.2021 19:10