Question: Fall 2018 EGEN 102 Introduction to Engineering Computations and Applications Homework #3 Due Tuesday, September 18, 2018 at 12:00pm on Brightspace Pokmon Go is one

 Fall 2018 EGEN 102 Introduction to Engineering Computations and Applications Homework

Fall 2018 EGEN 102 Introduction to Engineering Computations and Applications Homework #3 Due Tuesday, September 18, 2018 at 12:00pm on Brightspace Pokmon Go is one of the most popular mobile games of all time and has generated over $1 billion in revenue At a most basic level, the game involves Pokmon appearing on the screen, and the player for trainer) throwing a Pokball to try and catch the Pokmon. The instructor of this course is an expert trainer and thrower, but he still gets frustrated when he has multiple misses (or escapes) in a row. The average catch rate in the game is about 50% (i.e., you catch the Pokmon about 50% of the time when you throw a Pokball). Multiple misses in a row are especially frustrating. The following code simulates 20 random throws by generating 20 random numbers between 0.0-1.0. t then checks to see if there were ever 3 misses in row because 3 consecutive misses is when the frustration begins. import numpy catch_rate -0.5 def threeMiss (throws): for i in range(len(throws) -3): # loop through the throws print (sum(throws[i:i+3]

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 Databases Questions!