Day 27, Tuesday, May 8, 2018

Report 7: Germ avoidance problem, cont'd

elliptical_machine_uses_a.jpg

Latest code to use as a base or guide: germ_avoidance_starter_code_rev2.py

Now make 4D infection arrays: indexed by trial #, day #, user #, virus #.

Imports: tracerecorder.py

Assignment

Explore and illustrate the course of an infection outbreak as a function of at least one parameter.

Example: histogram of total users infected as a function of number of machines, holding all other paramters constant.

Physical data acquisition

Devices that measure things and send results to your computer

data_acquisition.jpg

Phones now have a useful set of sensors (list them) that we can access with progams we write.

Exercise: list the sensors on our phones

Example 1: accelerometers

Demo: accel.py

Example 2: microphone

Exercise: Ping pong ball experiment

Record, plot, and time the impacts of a bouncing ping-pong ball

pingpong_drop.jpg