shruthim0 / datapirates

Apache License 2.0
0 stars 0 forks source link

Homework Submission: Simulations #3

Open shruthim0 opened 1 year ago

shruthim0 commented 1 year ago

DUE: Thursday by 7:00 pm

Submit your homework for Unit 3 Lesson 16! Make sure you submit the Student Copy notebook, WITH your extra notes & class activities, not the lesson plan one :)

Rubric: Class activities done and extra notes (hacks 1-2): 0.3 points Unit 3 Lesson 16 homework (hacks 2-5) with explanations/comments: 0.6 points Unit 3 Lesson 16 Hack 6 challenge (your own simulation): 0.02-0.05 points, extra :) Any other extra effort can contribute to your grade.

Hack#3 Using Binary for Simulations Now you will combine everything we have talked about so far, plus binary. Imagine that there is a zombie apocalypse. A household with 8 survivors is observed. Let's create a simulation where we see how many of the people have been transformed into zombies. This will involve three functions.

  1. First, a function for randomizing decimal number 0-255
  2. Next, a function for converting this to a 8-bit binary number (one bit per person)
  3. Lastly, a function to read the binary bits, and assign each person a label (zombie or naw) based on the position of 0s and 1s

    The amount of people who are zombies is randomly determined. Based on the placement of the 1s and 0s in the 8 bit number, each person is assigned as being a zombie or not Grades

raisinbran25 commented 1 year ago

Jaden Nguyen

sophia926 commented 1 year ago

Sophia Tang

TayKimmy commented 1 year ago

Tay Kim

RyanHaki commented 1 year ago

Ryan Hakimipour

KKcbal commented 1 year ago

Adan Ruiz

tanishapatil1234 commented 1 year ago

Tanisha Patil

Emaad-Mir commented 1 year ago

Emaad Mir

drewreed2005 commented 1 year ago

Andrew Reed

Orlando-c commented 1 year ago

Orlando Carcamo

dolphinalt commented 1 year ago

Ethan Zhao

YLu-1258 commented 1 year ago

Alex Lu

nsk1207 commented 1 year ago

Nathan Kim

Q-tipwithaface commented 1 year ago

Lucas Moore

sommerss commented 1 year ago

Sabine Sommers

keiraokimoto commented 1 year ago

Keira Okimoto (not completely done just let me add my notes my commit is being slow)

lwu1822 commented 1 year ago

Lily Wu

BuddaBaker commented 1 year ago

Prasith Chilla

My fastpages isn't commiting right now so I linked the post in my github with all the challenges,homeworks and class activities.

DeadshotLegend commented 1 year ago

Shivansh Goel

h4seeb-cmd commented 1 year ago

Mirza Beg

GitHub is having issues for me right now, sorting it out, will edit again with the assignment already linked. RESOLVED

Henerystone commented 1 year ago

Shreyas Sarurkar

aliyatang commented 1 year ago

Aliya Tang

anawandh commented 1 year ago

Aditya Nawandhar

HARSHADEVICE commented 1 year ago

Harshavaratan Jaisankar

chinmaydr commented 1 year ago

Chinmay Ramamurthy

dillonlee06 commented 1 year ago

Dillon Lee

JasoXDDD commented 1 year ago

Haoxuan Tong

ItIsNooby commented 1 year ago

Dylan Garrett

Maxtullius commented 1 year ago

max- https://maxtullius.github.io/Max/2022/12/12/hw.html

IconicShark3 commented 1 year ago

Colin Mills

RohanAgr commented 1 year ago

Rohan Agarwal

VyaanG22 commented 1 year ago

Vyaan Gautam