Wondering if someone could show me?
As a child did you ever play the game "One potato, two
potato..." to determine who would be "it"? The complete rhyme is given below.
One potato, two potato, three potato, four;
Five potato, six potato, seven potato, more.
O U T spells "out you go."
A child is pointed to during each phrase. There are four phrases each in lines 1 and 2 and seven phrases in line 3, so the last child pointed to is the fifteenth child. If there are fewer than 15 children, you go around the circle again. The child pointed to when the word "go" is said is "out". The game begins again with the remaining children, starting again with the first child. The last child remaining is "it".
Simulate this game in a computer program. The input is the number of children; the output is which child is it.
Recently Asked Questions
- Can someone help me debug this code to give me the right answer please? // Squash_The_Bugs.cpp : This code contains five errors before it will work as
- Please help: Define the class bankAccount to implement the basic properties of a bank account. An object of this class should store the following data: Account
- i need help to write a C program that reads in several lines of non-negative integer numbers, computes the average for each line and prints out the average.