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 05:00
This program will store roster and rating information for a soccer team. coaches rate players during tryouts to ensure a balanced team. (1) prompt the user to input five pairs of numbers: a player's jersey number (0 - 99) and the player's rating (1 - 9). store the jersey numbers in one int vector and the ratings in another int vector. output these vectors (i.e., output the roster). (3 pts) ex: enter player 1's jersey number: 84 enter player 1's rating: 7 enter player 2's jersey number: 23 enter player 2's rating: 4 enter player 3's jersey number: 4 enter player 3's rating: 5 enter player 4's jersey number: 30 enter player 4's rating: 2
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
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
question
Mathematics, 12.02.2021 08:10
question
Mathematics, 12.02.2021 08:10
question
Biology, 12.02.2021 08:10
question
Mathematics, 12.02.2021 08:10
question
English, 12.02.2021 08:10
Questions on the website: 13722362