Question: Programming Language in Python Use numpy random seed of 20200213 initially (to begin with) to generate (print out) random number one at a time between

Programming Language in Python Programming Language in Python Use numpy random seed of 20200213 initially (to

Use numpy random seed of 20200213 initially (to begin with) to generate (print out) random number one at a time between 0.0 and 9.9 (both ends inclusive, one decimal, 0.0-9.9). Afterwards, in succeeding, change the seed to generate another random number, sum up the float output in one decimal point cumulatively till the summation exceeds 30.0 > 30.0) then stops. Must print out the last operation result as well. Note: Each time (random number generation, RNG) add the integer part of the random number output into the random seed and become the new seed for another RNG process. See illustration on the right. Initial Seed: 20200213 Suppose that random # is 7.5 Take the 7 (integer part) add onto 20200213 and become 20200220. It becomes the new seed to generate another random number. If 6.8 is the next RN, then take 6 and add to 20200220 to become 20200226 as new seed. Add up 7.5 + 6.8 + ... till summation > 30.0. Print out the last summation

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!