Question 3 - Squid Game [5 points] If you haven't heard already, Netflix's newest show Squid...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 3 - Squid Game [5 points] If you haven't heard already, Netflix's newest show "Squid Game", which is a Korean Survival Drama, has broken all records and has become the most watched show around the world recently. The general idea of the show Squid Game is that a group of players compete with each other in a "contest" to win #45.6 Billion by playing familar children games. The catch is that each round (there are 6 rounds in total) only the winners proceed to the next round, and well, the others get killed... However, there is a rule that "if the majority of players agree to abandon the game, the game ends." Keeping this rule in mind, write a function called endSquidGame (motivation_list), which takes a list of floats motivation_list that contains the motivation levels of each player between 0 and 100, and returns a str that indicates if the game ends, and when. To do this, follow the ideas that: . Before every round, the players vote on whether they want to abandon the game or not • If a player's motivation level is under 45, they will vote Yes for abandoning the game. Otherwise, they would want to continue playing and vote No . If more people vote for abandoning the game, then the games end and your output will be a string which will look something like Game abandoned before round "N" where N is an integer between 1 and 6 . If the majority of people vote for continuing the game, or there is a tie, then the game moves to the next round and the next game is played . After each game there are a few changes to the motivation levels: . Every round, people will die, or there will be a winner: A 0 If there are more than 13 players left, kill the 10 people with the lowest motivation score. If there are between 13 to 4 players inclusive, kill n 3 players, where n is the amount of remaining players. o If there are 3 players or less, 1 player is killed. If there is 1 player remaining, the games end and you must return Game won on round "N", where N is the current round. . After seeing their friends get killed, the remaining players' motivation levels decrease by 2% of the original level, unless their motivation level is already below 35, in which case they would instead be happy for surviving the round and their motivation levels would increase 5% . After these changes, the players vote again before playing the next round . If the game doesn't abandon and there are more then one survivor after the final round, then you would output Game not abandoned Question 3 - Squid Game [5 points] If you haven't heard already, Netflix's newest show "Squid Game", which is a Korean Survival Drama, has broken all records and has become the most watched show around the world recently. The general idea of the show Squid Game is that a group of players compete with each other in a "contest" to win #45.6 Billion by playing familar children games. The catch is that each round (there are 6 rounds in total) only the winners proceed to the next round, and well, the others get killed... However, there is a rule that "if the majority of players agree to abandon the game, the game ends." Keeping this rule in mind, write a function called endSquidGame (motivation_list), which takes a list of floats motivation_list that contains the motivation levels of each player between 0 and 100, and returns a str that indicates if the game ends, and when. To do this, follow the ideas that: . Before every round, the players vote on whether they want to abandon the game or not • If a player's motivation level is under 45, they will vote Yes for abandoning the game. Otherwise, they would want to continue playing and vote No . If more people vote for abandoning the game, then the games end and your output will be a string which will look something like Game abandoned before round "N" where N is an integer between 1 and 6 . If the majority of people vote for continuing the game, or there is a tie, then the game moves to the next round and the next game is played . After each game there are a few changes to the motivation levels: . Every round, people will die, or there will be a winner: A 0 If there are more than 13 players left, kill the 10 people with the lowest motivation score. If there are between 13 to 4 players inclusive, kill n 3 players, where n is the amount of remaining players. o If there are 3 players or less, 1 player is killed. If there is 1 player remaining, the games end and you must return Game won on round "N", where N is the current round. . After seeing their friends get killed, the remaining players' motivation levels decrease by 2% of the original level, unless their motivation level is already below 35, in which case they would instead be happy for surviving the round and their motivation levels would increase 5% . After these changes, the players vote again before playing the next round . If the game doesn't abandon and there are more then one survivor after the final round, then you would output Game not abandoned
Expert Answer:
Answer rating: 100% (QA)
Answer Code import random importing modules def line line function for printing new lines and a patt... View the full answer
Related Book For
Posted Date:
Students also viewed these electrical engineering questions
-
5 companies compete with each other in a product market. Your sales revenues are as follows: (275, 3040, 1120, 365, 180) Calculate the Lorenz coefficient as a parameter for the competition. a) 0.5 b)...
-
Dell Inc. and Hewlett-Packard Company (HP) compete with each other in the personal computer market. Dell's primary strategy is to assemble computers to customer orders, rather than for inventory....
-
Dell Inc. and Hewlett-Packard Company (HP) compete with each other in the personal computer market. Dell's strategy is to assemble computers to customer orders, rather than for inventory. Thus, for...
-
Based on the following definitions, which statement is NOT true? int[] 1DArray={1,2,3}; int[][] 2DArray=new int[2][]; 2DArray[0]={4,5}; 2DArray[1]={6,7,8}; public void method1(int[] 1DArray){...}...
-
Lee Garrett sells security systems for Guardsman Security Co. Garrett has a monthly sales quota of $40,000. If Garrett exceeds this quota, he is awarded a bonus. In measuring the quota, a sale is...
-
Alabama Atlantic is a lumber company that has three sources of wood and five markets to be supplied. The annual availability of wood at sources 1, 2, and 3 is 15, 20, and 15 million board feet,...
-
On January 1, 2020, Lessee Inc. enters into a 5-year equipment lease agreement for \(\$ 15,000\) annually (first payment due immediately). The lease grants the lessee an option to renew the lease for...
-
The information that follows is from Jasons Hardware Companys June 30, 2014, post-closing trial balance. Required 1. Prepare a classified balance sheet for Jasons Hardware Company. 2. Compute Jasons...
-
I need help with this problem:. Prepare an income statement. (Enter loss using either a negative sign preceding the number e.g. -45 or parentheses e.g. (45).) JASON COOPER CO. Income Statement v $....
-
Hemming Company reported the following current-year purchases and sales for its only product. Date January 11 January 10 Activities Beginning inventory Units Acquired at Cost $13.80- Sales March 14....
-
I just need the part in the picture bc i cant figure that outeverything else i have completedOn April 1, Jiro Nozomi created a new travel agency, AdventureTravel. The following transactions occurre 2...
-
What type of international banking office operates like a local bank but it is legally part of the parent company? Discuss.
-
SPSS Project #2 The goal of this second SPSS project is to learn how to run descriptive statistics, Analysis of Variance (ANOVA), and post-hoc testing for a two-factor study in a statistics program...
-
A server purchased at a cost of $80,000 in 2002 has a scrap value of $16,000 at the end of 4 years. Find the linear equation expressing the server's book value at the end of t years.
-
Divide and check your result: a) 77218 by 35 b) 51362 by 245 b) 4+ 6/3 x 4-2 Simply by using DMAS: a) 12/6X4+6 Solve the following problems: c) 39-0 x 6/3 a) What should be added to 2374 to get...
-
Christian B.N. Gade, "The Historical Development of the Written Discourses on Ubuntu", Based on Gade's analysis of ubuntu, which version of the concept are you most surprised about and why? Also,...
-
es Cane Company manufactures two products called Alpha and Beta that sell for $185 and $150, respectively. Each product uses only one type of raw material that costs $8 per pound. The company has the...
-
The following information is for Montreal Gloves Inc. for the year 2020: Manufacturing costs Number of gloves manufactured Beginning inventory $ 3,016,700 311,000 pairs 0 pairs Sales in 2020 were...
-
TC Corp. appointed a candidate as its new CEO under a 10-year contract. The contract required TC to pay the candidate $5 million if TC is acquired before the contract expires. AC Ltd. acquires TC...
-
What is the difference between the deferral method and the restricted fund method?
-
Describe a circumstance that may cause the functional currency to change.
-
Paramount Corporation acquired its 75 percent investment in Sun Corporation in January 2012, for \($2,910,000,\) and accounts for its investment internally using the complete equity method. At the...
-
Below are the pre-combination condensed balance sheets of Princecraft and Sylvan Companies just prior to Princecrafts acquisition of 90 percent of the voting shares of Sylvan for \($43\) million in...
-
On January 1, 2013, Palomar Resorts acquired 65 percent of the stock of Sahara Hotel & Casino for \($41.45\) million in cash and stock. The date-of-acquisition fair value of the noncontrolling...
Study smarter with the SolutionInn App