Chapter 1. Tutorial 1.2: Creating and interpreting bar charts and pie charts

1.1 Problem Statement

{40, 50, 60, 70}
rand(0,3)
@whpop[$whpopindex]
{40, 20, 30, 10}
rand(0,3)
@blpop[$whpopindex]
{20, 30, 10, 20}
rand(0,3)
@aspop[$whpopindex]
{15, 20, 25, 30}
rand (0,3)
@whintol[$whintolindex]
{60, 65, 70, 75}
@blintol[$whintolindex]
{70, 75, 80, 85}
@asintol[$whintolindex]
$whpop/100*$whintol/100
$blpop/100
$whpop/100
$blpop/100*$blintol/100
$aspop/100*$asintol/100
$randomintolanswer+$randomblintol+$randomasintol
$randomasintol/$randomallanswer/100
$asintol/100
$randomblintol/$randomallanswer
$randomasintol/$randomallanswer
$blintol/100
$blintol/100

Lactose intolerance causes difficulty digesting dairy products that contain lactose (milk sugar). It is particularly common among people of African or Asian ancestry. At a college $whpop % of the population is white; $blpop % is black; and $aspop % is Asian. Moreover, $whintol % of whites, $blintol % of blacks, and $asintol % of Asians are lactose intolerant.

Consider the (partially) completed tree diagram below:

1.2 Step 1

questions

Question 1.1

wAPrTidEohjBte+7t2cveqg4q6C5VpEvPxIOOPOlePip1XSr6pvq18lQ8IpA3ML25U9Q/xwwew6HVDrJnlSoiagw1ma443RuzUQS28mb5SBNJeWxWP1MnHTjrX4XpQKdW2Bhv5YXIN+bXpz/
Correct.
Incorrect.

Question 1.2

/qpx6i2AdzkNj4YaWH9RixuyjeCXUy/6oJWUGUS7my/9gsXgr+dlyPHCOBA8NCzM0tPzlh8IDpfs0OxzS8Fqwg==
Correct.
Incorrect.

Question 1.3

KWZVNuV6ljANsl3UgN+zMiuFyGXANo1eywcEMyvidg/PVTnfxOXafk3yU9BBp2x3fLHnUCL17jH2HWqfmZFbJTAezxM=
Correct.
Incorrect.

1.3 Step 2

questions

Question 1.4

ce7Cls8wlSMY1KEchLNMiS1evrA4qNCVm8Pyvmk1aFwNsec9r6LbHHg3ca7yoOF7H4DGFLAf7aWV1PFhUCv2btRKkLm3AuvGeK4SUNKbJtn4Lo3c5Vlc4ycJx/s99t990DC0eeHrYvCQDmL+
Correct.
Incorrect.

Question 1.5

p2YVzm6u1Ambzxos+yRYNZY7p4ztRBBkdMhQfov7UuLRdJBwjaarb9DM9Q6714PDOrnkKfduZ+gniOkLbrqY4/YhB+a688wTp4Ihf5NmkzFzIwwFL2w9rzHLlAjLun5iXT8kYZ7G1K1+jUJJ
Correct.
Incorrect.

Question 1.6

lFni2CXDencW/5iUghHST3QwxDWlql1PLh7C/zJwQDzwxLPBw9r+9kdfrGDY2pVWHpnnyhEdaaFTQ7g4bXi8PXvewqHgv2Bc4e4oWD8j4x62aDhdwCcgutwyNedAhzfxbGnDbIASdu0g5fxk2FH+ALE4rQFGLwDhXeBaVQ==
Correct.
Incorrect.

1.4 Step 3

questions

Question 1.7

UiIuBvgHO2FyuRoxlZwNS24xKvKqHlebYLqfGqdPILKz15epQQRiVvDl1xksXUYaKzRYWh1k2MlwoLWT12AJgoR7215R9SG7uEZMjA==
Correct.
Incorrect.

Question 1.8

kG2ERX+vq6rrn3wcDe+5DSK+GZDu3eqIS9YxPunAgT5uxzo8AlZpoF/JzRhhIZeUiUNbcNCsQuRSl3vbKOSY9Q==
Correct.
Incorrect.

Question 1.9

zg4tKEd9duKCpaIuPm/Pz089YUHmpCM4fAZ+kMt67hDjF/r+Q+euvhFmLXglLeMN31ik8SASYojrWzl6IPXTXEoWLx4kJYfFHTERqxd/0Ac=
Correct.
Incorrect.

Question 1.10

M0sYL8ECVqEj4wYgchVh+sh6ieQvMDfg59rsHvXyEELuM4xgI/fKTSagwGkkbXUdhyLblRFqureL9DupgjUtSVOEeyOcurd8M48DBw==
Correct.
Incorrect.