Computers and Technology

A rumor spreads in the following way: a person picks at random another person to inform of the rumor. If that person hasn't already been informed of the rumor, that person starts spreading the rumor as well. If that person had already been informed of the rumor, neither person spreads this rumor any further. Starting with 999 people who don't know the rumor and one who does and starts spreading it, write a program that simulates this situation and then prints the final percentage of the population that ends up knowing the rumor

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, misslux
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
image
Computers and Technology, 24.06.2019 09:30, nialphonsa
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, kamo90
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
image
Computers and Technology, 25.06.2019 08:00, lilkit
In designing a management information system (mis), after defining the system's objectives, the next step is to information in a useful formatintegrate the hardware and software componentscollect and analyze datause information for decision making
Answers: 2
Do you know the correct answer?
A rumor spreads in the following way: a person picks at random another person to inform of the rumor...

Questions in other subjects:

Konu
Physics, 27.07.2021 17:40
Konu
Mathematics, 27.07.2021 17:40
Konu
History, 27.07.2021 17:40
Konu
Mathematics, 27.07.2021 17:40