Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago