Jump to content

Nameless (NL)

Member
  • Posts

    4
  • Joined

  • Last visited

Nameless (NL)'s Achievements

  1. I took the amount of people that got infected at the scratch then multiplied that by the amount of scratches it took average = 1 * test1 + 2 * test2 + 3 * test3 + 4 * test4 ( in the actual code this goes up to 25 * test25 + 26 * surv) (testx is the amount of people that got infected at scratchx) and I used surv as everyone who doesn't get infected after 26 scratches then it adds it together and devides that by the total amount of people (the difference probably is because it cuts off at 25scratches and everything above that counts as 26scratches) averageTotal = average / number averagetotal is the average that is lets you see and the number is the total amount of people and the average off 3 with 100,000 people is strange for me 100,000 people gets a average of around 3.99
  2. it doesn't save the results but made a extra sentence that (if it works correctly) only closes after you press enter infectionsFromScratches.py
  3. ofcourse I could put the program in the attachment (made in python 3.5.2) I know there are probably better ways to make this kind off program and if it isn't the 25% of all scratches get infected this program is worthless infectionsFromScratches.py
  4. made a small program which does this simulation (it cuts off after 25 scratches so everyone left gets infected at the 26th scratch) if it is actually the 75% to not get infected previous scratches don't matter the average is around 4 scratches per person (most of the time got to 3,99 but whitout the cut-off it would probably be 4) know this was a old post but would like to add this information.
×
×
  • Create New...