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 1 and 10 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 1 player is left, and report the winner
The player will just be numbered 1 to however many players there are.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!