Incorrect asnwer, or I'm dumb
Bug #721085 reported by
Quantum Cow
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gbrainy (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gbrainy
V1.51
Q:
Out of 40 people, 13 have brothers, 14 have sisters and 8 have both. How many people have neither brothers nor sisters.
A:
The correct answer is 21.5 people have brothers only, 6 sisters only and 8 have sisters and brothers.
Is there a half brother somewhere? I would guess by the wording, that the 8 that have both would be part of the 27 that have one or the other. That would be 13 that have neither. If the wording is unclear, and the 13 and 14 are exclusive, and only have brother, or only have sister, then the 8 would be in addition to the 27. Which would be 35, leaving 5 with neither. So it looks like a bug to me.
To post a comment you must log in.
First, thanks for the bug report.
This the formula that calculates these[1] for gbrainy 1.51:
int people = 40;
int brothers = 10 + random.Next (8);
int sisters = 12 + random.Next (8);
int both = 5 + random.Next (5);
int brothers_only = (brothers - both);
int sisters_only = (sisters - both);
int rslt = people - brothers_only - sisters_only - both;
It is just impossible to generate a non integer number.
Can you please include a screen capture that shows the issue?
Which language are you playing? English?
Thanks,
Jordi,
[1] http:// git.gnome. org/browse/ gbrainy/ tree/data/ games.xml? id=GBRAINY_ 1_5_1