Question: Write a program that plays hot potato Ask the user for a seed for the random number generator, and how many players are playing. Toss
Write a program that plays hot potato
Ask the user for a seed for the random number generator, and how many players are playing.
Toss the potato to one of the players determined by a random number
and then pass the potato to n between and determined by random number players in a circle
the nth player is eliminated and report who is eliminated
the eliminated player passes the potato to the next person
do this until only player is left, and report the winner
The player will just be numbered to however many players there are.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
