Question: please write in Java code *with a photo of the actual code in the text editior too Duck, duck, goose is a child's game where
Duck, duck, goose is a child's game where Problem 9: Duck Duck Goose (10 points) ck, goose is a child's game where kids sit in a circle. facing inward, while another player, walks around calling each a "duck" until finally calling one a "goose. e a "goose". Given the numbe of kids seated in a circle, and the number of ducks called out determine which child is the goose. Facts: The player circles the group in clockwise rotation Label the children numerically. The first duck called is labeled: child O O To the left of child O is child n-1. where n is the number of children Input You are given two positive integer inputs. The first represents the number of kids in the circle. The second represents the number of ducks that are called before goose. Output Print as an integer which child was selected as goose. Sample output Sample Input 7 15 44 126 03 O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
