subject

1.populate an array(list) of size n = 50 randomly with only integers 0 and 1 2.repeat step1 nn = 1000 times using either a while loop or a for loop at this point you should have a total of 5 observations this is our experimental result we will compare to the theoretical code should look like mylist = [] while (j < nn): # loop for 1000 times i = 0 while i < n : # loop 50 times populate list of nn 50 randnum = random. randint(a, b) mylist. append(randnum) i = i +1 j = j + 1 3.display the number of 0’s (use the count() function from prior labs) 4.display the number of 1’s (use the count() function from prior labs) now for the theoretical calculations

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
Feedback is one of the basic elements games have in common true false
Answers: 2
You know the right answer?
1.populate an array(list) of size n = 50 randomly with only integers 0 and 1 2.repeat step1 nn = 100...
Questions
Questions on the website: 13722362